Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing GenPi64 / gentoo-on-rpi-64bit on USB3 SSD
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54421
Location: 56N 3W

PostPosted: Thu May 05, 2022 4:25 pm    Post subject: Reply with quote

ElRay70K70H,

Code:
unknown-block (0,0)
tells that the kernel cannot see the device that holds the root filesystem.
It also tells that you do not use an initrd or that error would have dropped you to a shell in the initrd.

That's fine. Together it gives us something to poke at.

fstab is in the clear as its on the root filesystem so cannot have been read yet.

As root is going to be on an SSD attached over USB, all the required drivers must be configured as <*> for built in, so there is nowhere to load any modules from without an initrd.
Modules are stored in /lib/modules/`uname -r`/... which is on the root filesystem which is not mounted yet.

An initrd contains whatever you want and a script that controls what it does.
Its a temporary root fs.
Building the right bits into the kernel will be simpler.
An initrd with kernel modules needs to be recreated every kernel change.

Its also passible that your cmdline.txt is incorrect.
Code:
root=/dev/... rootwait
are both required

Until it works, rootdelay=30 may be better. rootwait will wait for the rootfs forever. Rootdelay=30 waits for 30 sec, then either succeeds or show the panic message.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ShorTie
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 101

PostPosted: Thu May 05, 2022 8:54 pm    Post subject: Reply with quote

Here is a simple script I use to build and install the kernel
Code:

  eselect kernel list
  eselect kernel set 2
  eselect kernel list

  echo; echo; echo "  make mrproper"
  make -C linux mrproper

  echo; echo "  Setting scmKernel_version to plus/+"
  echo + > linux/.scmKernel_version

  echo; echo; echo "  Creating bcm2711_defconfig .config"
  make -C linux bcm2711_defconfig

  echo; echo; echo "  make prepare"
  make -C linux prepare

  echo; echo "  Set hostname"
  sed -e 's/CONFIG_DEFAULT_HOSTNAME="(none)"/CONFIG_DEFAULT_HOSTNAME="tux"/' -i linux/.config

  echo; echo; echo "make oldconfig"; echo
  make -C linux oldconfig

  echo; echo; echo "  Compile-kernel"
  make -j 4 V=1 -C linux

  echo; echo; echo "  Make modules"
  make -j 4 V=1 -C linux modules

  echo; echo; echo "  Make dtbs"
  make -j 4 V=1 -C linux dtbs

  echo; echo "  Make modules_install"
  make -C linux modules_install

  echo; echo "  Some Copies"
   cp -v /usr/src/linux/arch/arm64/boot/Image /boot/kernel8.img
   cp -v /usr/src/linux/System.map /boot/System.map-5.15.32
   cp -v /usr/src/linux/arch/arm64/boot/dts/overlays/*.dtb* /boot/overlays/
   cp -v /usr/src/linux/arch/arm64/boot/dts/overlays/README /boot/overlays/
   cp -v /usr/src/linux/.config /boot/linux.config-5.15.32
   cp -v /usr/src/linux/arch/arm64/boot/dts/broadcom/bcm271*.dtb /boot

Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54421
Location: 56N 3W

PostPosted: Thu May 05, 2022 9:36 pm    Post subject: Reply with quote

ShorTie,

How does that set the kernel options required for USB booting and root on USB to built in?

bcm2711_defconfig didn't used to do it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ElRay70K70H
n00b
n00b


Joined: 12 Apr 2022
Posts: 17

PostPosted: Thu May 05, 2022 10:05 pm    Post subject: Reply with quote

The last batch of changed did the trick. I'm in at the cmdline now.

Woo ... Hoo!!

Thanks all.
Back to top
View user's profile Send private message
ShorTie
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 101

PostPosted: Thu May 05, 2022 10:08 pm    Post subject: Reply with quote

bcm2711_defconfig I guess, as I've never have adjusted bcm2711_defconfig for much.
Like only modem's to modules and add a few ciphers.
But I do that with sed .. :/~

Never heard of any "root on USB to built in?", that has always been a cmdline.txt thing.
But it is not really usb now.
Your booting the 1st vfat partition it see's, with a root of PARTUUID.
They switched to using PARTUUID so the image can be writen to any thing.
Instead of being nailed to mmcblkp02 or what ever.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54421
Location: 56N 3W

PostPosted: Fri May 06, 2022 5:08 pm    Post subject: Reply with quote

ShorTie,

The OP is not using an MMC card at all. The PI3 and Pi4 can boot directly from USB.
The Pi3 needs a One Time Programmable Fuse blown and early Pi4s need a firmware update.

The firmware can read the vfat partition from USB storage.
The kernel needs to be able to read root from USB storage too, so no modules permitted for that code.

There is another wrinkle to root over USB. The kernel normally mounts root before it starts USB.
That's bound to fail with root on USB, so rootwait or rootdelay fixes that.

One of those options are required for root on MMC too but for a different reason.
MMC scanning is asynchronous, so it may not be ready in time.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ShorTie
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 101

PostPosted: Sat May 07, 2022 11:50 am    Post subject: Reply with quote

Ok
Once again I see your the Master.
And I'm just a fool trying to help.

Y'all Have A Great Day Now
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum