Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5276

Advanced users • is the /rootfs/boot is still needed ?

$
0
0
Hi,

I've took a Devuan ready .img for raspberry here

Before deploying I cross-compiled my kernel (6.6.63), thanks to he instructions on raspberrypi.com and the forum.

For context here few selected commands enter on the host to compiled the kernel

Code:

#...#/dev/sdb = sd-cardmount /dev/sdb1 /mnt/raspbootmount /dev/sdb2 /mnt/rasprootfs#...make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- bcm2711_defconfigmake ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- menuconfigtime make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gu- Image modules dtbscp arch/arm64/boot/Image /mnt/raspboot/$KERNEL.img cp arch/arm64/boot/dts/broadcom/*.dtb /mnt/raspboot/mkdir /mnt/raspboot/overlays cp arch/arm64/boot/dts/overlays/*.dtb* /mnt/raspboot/overlays/ cp arch/arm64/boot/dts/overlays/README /mnt/raspboot/overlays/
And everything work great !

but on the rpi a tree -aFn /boot return

Code:

/boot/|-- Image|-- System.map-6.1.93 <---|-- broadcom/|   |-- LICENCE.broadcom*|   |-- bcm2711-rpi-4-b.dtb*|   |-- cmdline.txt*|   |-- config.txt*|   |-- fixup4.dat*|   |-- kernel8.img*|   |-- overlays/|   |   |-- README*|   |   |-- act-led.dtbo*|   |   |-- adafruit-st7735r.dtbo*|   |   |-- TRUNKED|   |   |-- wittypi.dtbo*|   |   `-- wm8960-soundcard.dtbo*|   `-- start4.elf*|-- config-6.1.93 <---|-- initrd.gz|-- initrd.img-6.1.93 <--`-- vmlinuz-6.1.93 <--
When I take the sd-card on my desktop computer:

Code:

$: tree -nFa /mnt/rasprootfs/boot/mnt/rasprootfs/boot├── broadcom/ <--empty !├── config-6.1.93├── Image├── initrd.gz├── initrd.img-6.1.93├── System.map-6.1.93└── vmlinuz-6.1.93$: tree -nFa /mnt/raspboot/mnt/raspboot├── bcm2711-rpi-4-b.dtb*├── cmdline.txt*├── config.txt*├── fixup4.dat*├── kernel8.img*├── LICENCE.broadcom*├── overlays/│   ├── act-led.dtbo*│   ├── adafruit18.dtbo*│   ├── TRUNKED│   ├── wittypi.dtbo*│   └── wm8960-soundcard.dtbo*└── start4.elf*1 directory, 350 files
So it seem that the /boot on the rpi make some link from there and there. Fine with me :)

But I would like to place the correct file ( 6.6.63 ) in the /boot instead of those marked <--

I don't think I use the initrd so I believe those files (see after) can be deleted, right ?

Code:

/boot/|-- initrd.gz|-- initrd.img-6.1.93 <--`-- vmlinuz-6.1.93 <--
For those two

Code:

/boot/|-- System.map-6.1.93 <---|-- config-6.1.93 <---
For the config-6.1.93 can I cp .config used during compiling ?
System.map I have no ideas at all

Statistics: Posted by SpongeB0B — Fri Dec 20, 2024 1:55 pm



Viewing all articles
Browse latest Browse all 5276

Trending Articles