LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-25-2018, 11:13 AM   #1
guelvicle
LQ Newbie
 
Registered: Mar 2018
Location: France
Distribution: ArchLinux & LinuxFromScratch
Posts: 3

Rep: Reputation: Disabled
Question LFS 8.2 : OK on a Virtual Machine BUT don’t start on a physical machine MAC



Hello world !
It’s the first time i post some text about LFS and give my apologies if i make
some formals mistakes according the communication rules.
First, i am sorry for my english, i am french and able to read existing english
text, but almost null to write something.
Thank to everybody who takes time to read me.

Following strictly LFS manual (release 7.10 and now 8.2), I found all that i
need and I got success on a VM under VirtualBox running on a MacbookPro.
Later I complete it with BLFS and obtain a nice result with the tools that I
hoped.
All along that installation, I kept all the used scripts (one for each step)
and replay them under the same conditions on my MAC. Since a long month i still
blocked for making a good kernel. Kernel compilation seem OK, Grub-2
configuration is good BUT at starting fail.

1-Operating Context :
Computer used : MacBookPro11,3
Intel Core i7 - 2,3 Ghz
Processor : 1 / Cores : 4
Memory : 16 Go
Host system : Archlinux (iso 2018.03.01-x86_64) on a SD card
kernel archlinux 4.15.6.1 : grub-2 - systemd - Xorg - network

Guest system : LFS 8.2 on an external SSD Lacie sharing as :
sda1 for /boot ext2
sda2 for swap swap
sda3 /sources ext4
sda4 / ext4
kernel 4.15.3 - grub-2 - init with systemd
The SSD is plug on a Thunderbolt port/
Result : The starting seem complete, the login prompt showing then nothing
append, the keyboard is down the last line is
< machine login: [ 2.255104] clocksource: Switched to clocksource tsc >
Tries done :
1 - booting with < clocksource=hpet > inside grub.cfg ==> the last line
(clock source ...) disappears BUT the keyboard don’t answer.
2 - booting with single user <S> dans le grub.cfg ) ==> on more time, no
active keyboard even to type <ctrl-d>
3 - copy kernel 4.15.6.1 & his associate sysramfs both compiled on ArchLinux
host on /boot of Guest LFS (to be sure I unplugged SD card)
==> then start successful, to be sure once more i check some files : the
started system is LFS.
4 - compile 4.15.6 kernel with .config file as is the first time
==> kernel panic (perhaps because ArchLinux don’t provide a System.map and
no modules are loaded)
5 - compare config files Archlinux & LFS to make some changes
==> kernel panic
6 - add intel-code on initrd line of Grub-2 ==> kernel panic
7 - Finally as system may start with files kernel from the host ArchLinux :
I redo it and get access to log using the <journalctl> command.
Then i became able to compare the results from both "LFS alone" and
"ArchLinux on LFS" starts boots.
I found the most signifiant among else at the beginning of the log :
In LFS :
...
20:24 kernel: tsc: Fast TSC calibration failed
20:24 kernel: tsc: Unable to calibrate against PIT
20:24 kernel: tsc: No reference (HPET/PMTIMER) available
20:24 kernel: Zone ranges:
20:24 kernel: DMA [mem 0x0000000000001000-0x0000000000ffffff]
20:24 kernel: DMA32 [mem 0x0000000001000000-0x00000000ffffffff]
20:24 kernel: Normal [mem 0x0000000100000000-0x000000047f5fffff]
...
In ArchLinux :
...
21:52 kernel: tsc: Fast TSC calibration using PIT
21:52 kernel: Zone ranges:
21:52 kernel: DMA [mem 0x0000000000001000-0x0000000000ffffff]
21:52 kernel: DMA32 [mem 0x0000000001000000-0x00000000ffffffff]
21:52 kernel: Normal [mem 0x0000000100000000-0x000000047f5fffff]
...
My conclusions :
Init step is fully done.
Keyboard still mute.
May be Clocksource and/or Watchdog are in question ?
Of course my Kernel .config file is wrong according to the MAC computer.
Questions:
Does somebody as already compile a Linux Kernel on a Macbook as mine and
successfully start it ?
Where to fetch around the Kernel, his modules and the starting line inside
Grub-2 ?
I may post the used .config file and the logs of starting both LFS and
ArchLinux issued of <journalctl> command.
And more of course if one need it.

Last edited by guelvicle; 04-25-2018 at 06:16 PM.
 
Old 05-03-2018, 01:57 AM   #2
Nobutarou
Member
 
Registered: May 2017
Posts: 43

Rep: Reputation: Disabled
I don't think it is clocksource issue. As you mentioned, this is input device issue. I think you misses your device driver.

You can build kernel and install modules from the same kernel source with the same .config under chroot, instead of copying.

For journalctl, you can search `input :` to see your kernel can find your keyboard.

Last edited by Nobutarou; 05-03-2018 at 02:03 AM. Reason: Add comment
 
Old 05-06-2018, 01:40 AM   #3
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
While in the chroot and building the kernel try this.

make localyesconfig
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Convert Virtual Machine from VirtualBox to Physical Machine. hack3rcon Linux - Virtualization and Cloud 9 07-13-2015 03:52 PM
how to know the remote machine is Virtual machine or physical machine pantdk Linux - Server 19 10-16-2014 01:48 PM
Create a virtual image of a physical machine mande01 Linux - Virtualization and Cloud 5 02-27-2012 03:09 PM
Make virtual machine from many physical PCs galg Linux - Virtualization and Cloud 7 11-02-2010 02:34 PM
Is This Machine Physical or Virtual? unixanalyst Linux - Hardware 5 10-11-2009 04:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration