Doing an online course, i’ve kinda screw up my MBR on my BBB eMMC and i’m unable to restore it.
I’ve managed to build a 5.10 kernel that boots fine from SD card.
I know there used to be a script that can be run manually from BBB shell that ‘copy’ the SD boot and rootFS to the eMMC but can’t seem to find it.
I have not managed yet to build a ‘flasher’ image, i would like to learn to do it from command line.
Interesting! You’ve done a few modifications to the “[BeagleBoard.org Debian Buster IoT Image 2020-04-06]”… First i don’t see you version of u-boot, your kernel 5.10.87 doesn’t need the overlays and they didn’t load… Your rootfs is on mmcblk0p2, i stopped doing that a few years back…
Yeah, sorry, the built-in scripts are NOT going to help you move that from SD → eMMC…
I don’t want to risk breaking your system with my scripts, it would best to just use “DD”
Okay, i did not get very creative, i started with a blank SD card, formatted 2 partitions one for BOOT and one for ROOTFS, and i simply did these commands to build my kernel directly from the repository 5.10:
make ARCH=arm bb.org_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage dtbs LOADADDR=0x80008000 -j4
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules -j4
then copy to SD card:
sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=/media/philippe/ROOTFS/ modules_install
/home/philippe/Beagleboard/ldd/source/linux-5.10/arch/arm/boot/uImage
/home/philippe/Beagleboard/ldd/source/linux-5.10/arch/arm/boot/dts/am335x-boneblack.dtb