I followed exactly your suggestions until generating *extlinux.conf*. I don't understand why should I mount eMMC if I can access it directly ... as you mentioned in one of your previous mails it is generated in */boot/extlinux/extlinux.conf*. I could access it from my host via serial terminal or ssh. How do I update it? And then, once *extlinux.conf* updated, how do I use it ?
By the way, now I can't do anything because after all these manipulations BBB fails to boot from eMMC:: U-Boot SPL 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600) Trying to boot from MMC2 Loading Environment from EXT4... ** File not found /boot/uboot.env ** ** Unable to read "/boot/uboot.env" from mmc0:1 ** U-Boot 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600), Build: jenkins-github_Bootloader-Builder-137 CPU : AM335X-GP rev 2.1 I2C: ready DRAM: 512 MiB No match for driver 'omap_hsmmc' No match for driver 'omap_hsmmc' Some drivers were not found Reset Source: Power-on reset has occurred. RTC 32KCLK Source: External. MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Loading Environment from EXT4... ** File not found /boot/uboot.env ** ** Unable to read "/boot/uboot.env" from mmc0:1 ** Board: BeagleBone Black <ethaddr> not set. Validating first E-fuse MAC BeagleBone Black: BeagleBone: cape eeprom: i2c_probe: 0x54: BeagleBone: cape eeprom: i2c_probe: 0x55: BeagleBone: cape eeprom: i2c_probe: 0x56: BeagleBone: cape eeprom: i2c_probe: 0x57: Net: eth0: MII MODE cpsw, usb_ether Press SPACE to abort autoboot in 0 seconds board_name=[A335BNLT] ... board_rev=[000C] ... switch to partitions #0, OK mmc0 is current device SD/MMC found on device 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... gpio: pin 56 (gpio 56) value is 0 gpio: pin 55 (gpio 55) value is 0 gpio: pin 54 (gpio 54) value is 0 gpio: pin 53 (gpio 53) value is 1 switch to partitions #0, OK mmc0 is current device gpio: pin 54 (gpio 54) value is 1 Checking for: /uEnv.txt ... Checking for: /boot.scr ... Checking for: /boot/boot.scr ... Checking for: /boot/uEnv.txt ... ** Invalid partition 2 ** ** Invalid partition 3 ** ** Invalid partition 4 ** ** Invalid partition 5 ** ** Invalid partition 6 ** ** Invalid partition 7 ** switch to partitions #0, OK mmc1(part 0) is current device Scanning mmc 1:1... Found /boot/extlinux/extlinux.conf Retrieving file: /boot/extlinux/extlinux.conf 256 bytes read in 13 ms (18.6 KiB/s) 1: Linux 4.19.94-ti-r42 Retrieving file: /boot/vmlinuz-4.19.94-ti-r42 10095592 bytes read in 648 ms (14.9 MiB/s) append: console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet Retrieving file: /boot/dtbs/4.19.94-ti-r42/am335x-boneblack.dtb 59483 bytes read in 25 ms (2.3 MiB/s) ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Loading Device Tree to 8ffee000, end 8ffff85a ... OK Starting kernel ... [ 0.000762] timer_probe: no matching timers found [ 0.115116] l4_wkup_cm:clk:0010:0: failed to disable [ 0.770031] omap_voltage_late_init: Voltage driver support not added [ 1.004670] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. [ 1.018930] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.94-ti-r42 #1buster [ 1.026095] Hardware name: Generic AM33XX (Flattened Device Tree) [ 1.032263] [<c0113e18>] (unwind_backtrace) from [<c010e388>] (show_stack+0x20/0x24) [ 1.040057] [<c010e388>] (show_stack) from [<c0d20f5c>] (dump_stack+0x8c/0xa0) [ 1.047321] [<c0d20f5c>] (dump_stack) from [<c013c6f0>] (panic+0x10c/0x278) [ 1.054322] [<c013c6f0>] (panic) from [<c0d3658c>] (kernel_init+0x120/0x128) [ 1.061407] [<c0d3658c>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c) [ 1.069008] Exception stack(0xdc149fb0 to 0xdc149ff8) [ 1.074084] 9fa0: 00000000 00000000 00000000 00000000 [ 1.082299] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 1.090514] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 1.097180] ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. ]--- U-Boot SPL 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600) Trying to boot from MMC2 Loading Environment from EXT4... Card did not respond to voltage select! U-Boot 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600), Build: jenkins-github_Bootloader-Builder-137 CPU : AM335X-GP rev 2.1 I2C: ready DRAM: 512 MiB No match for driver 'omap_hsmmc' No match for driver 'omap_hsmmc' Some drivers were not found Reset Source: Power-on reset has occurred. RTC 32KCLK Source: External. MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Loading Environment from EXT4... Card did not respond to voltage select! Board: BeagleBone Black <ethaddr> not set. Validating first E-fuse MAC BeagleBone Black: BeagleBone: cape eeprom: i2c_probe: 0x54: BeagleBone: cape eeprom: i2c_probe: 0x55: BeagleBone: cape eeprom: i2c_probe: 0x56: BeagleBone: cape eeprom: i2c_probe: 0x57: Net: eth0: MII MODE cpsw, usb_ether Press SPACE to abort autoboot in 0 seconds board_name=[A335BNLT] ... board_rev=[000C] ... Card did not respond to voltage select! Card did not respond to voltage select! Card did not respond to voltage select! gpio: pin 56 (gpio 56) value is 0 gpio: pin 55 (gpio 55) value is 0 gpio: pin 54 (gpio 54) value is 0 gpio: pin 53 (gpio 53) value is 1 Card did not respond to voltage select! Card did not respond to voltage select! switch to partitions #0, OK mmc1(part 0) is current device Scanning mmc 1:1... Found /boot/extlinux/extlinux.conf Retrieving file: /boot/extlinux/extlinux.conf 256 bytes read in 13 ms (18.6 KiB/s) 1: Linux 4.19.94-ti-r42 Retrieving file: /boot/vmlinuz-4.19.94-ti-r42 10095592 bytes read in 648 ms (14.9 MiB/s) append: console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet Retrieving file: /boot/dtbs/4.19.94-ti-r42/am335x-boneblack.dtb 59483 bytes read in 26 ms (2.2 MiB/s) ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Loading Device Tree to 8ffee000, end 8ffff85a ... OK Starting kernel ... [ 0.000767] timer_probe: no matching timers found [ 0.115091] l4_wkup_cm:clk:0010:0: failed to disable [ 0.769770] omap_voltage_late_init: Voltage driver support not added [ 0.977109] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 0.985429] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.94-ti-r42 #1buster [ 0.992594] Hardware name: Generic AM33XX (Flattened Device Tree) [ 0.998758] [<c0113e18>] (unwind_backtrace) from [<c010e388>] (show_stack+0x20/0x24) [ 1.006552] [<c010e388>] (show_stack) from [<c0d20f5c>] (dump_stack+0x8c/0xa0) [ 1.013815] [<c0d20f5c>] (dump_stack) from [<c013c6f0>] (panic+0x10c/0x278) [ 1.020818] [<c013c6f0>] (panic) from [<c1401904>] (mount_block_root+0x1e4/0x290) [ 1.028339] [<c1401904>] (mount_block_root) from [<c1401adc>] (mount_root+0x12c/0x148) [ 1.036293] [<c1401adc>] (mount_root) from [<c1401c58>] (prepare_namespace+0x160/0x1a8) [ 1.044337] [<c1401c58>] (prepare_namespace) from [<c1401420>] (kernel_init_freeable+0x3f8/0x40c) [ 1.053255] [<c1401420>] (kernel_init_freeable) from [<c0d36484>] (kernel_init+0x18/0x128) [ 1.061560] [<c0d36484>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c) [ 1.069161] Exception stack(0xdc149fb0 to 0xdc149ff8) [ 1.074236] 9fa0: 00000000 00000000 00000000 00000000 [ 1.082452] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 1.090666] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 1.097330] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]--- On Wednesday, August 26, 2020 at 5:15:05 PM UTC+2, RobertCNelson wrote: > > On Wed, Aug 26, 2020 at 10:05 AM Pavel Yermolenko <[email protected] > <javascript:>> wrote: > > > > Sorry, didn't understand. > > My actual goal is to have sd-card with only two files MLO and u-boot.img > in order to explore u-boot commands. > > These two files are actually on host Ubuntu machine. > > According to your previous message I don't see how can I get these files > on sd-card. > > Could you precise, please. > > I don't understand either.. > > 6 hours ago you had exactly that, but you didn't properly specify mmc > node name in the extlinux.conf file, so it failed on bootup. > > I told you how to fix that, so why can't you fix > /boot/extlinux/extlinux.conf ? > > Once you fix /boot/extlinux/extlinux.conf so it boots today, you can > go ahead and install what ever version of mainline "u-boot" and it'll > just work.. > > Regards, > > -- > Robert Nelson > https://rcn-ee.com/ > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/6101510d-f00d-419f-80d9-25f3112145e2o%40googlegroups.com.
