昨天折腾了一整天刷BBB的新系统,最后发现是由于选择的镜像文件不合适导致。
在http://beagleboard.org/latest-images上下载的系统Debian 9.5 2018-10-07 4GB SD LXQT 不可用
刻录到SD卡后,按住SW2键,启动到调用内核时,就走不下去了。
U-Boot SPL 2018.09-00002-g0b54a51eee (Sep 10 2018 - 19:41:39 -0500) Trying to boot from MMC1 Loading Environment from EXT4... ** File not found /boot/uboot.env ** ** Unable to read "/boot/uboot.env" from mmc0:1 ** U-Boot 2018.09-00002-g0b54a51eee (Sep 10 2018 - 19:41:39 -0500), Build: jenkins-github_Bootloader-Builder-65 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 data abort pc : [<9ff513c4>] lr : [<9ff4aaaf>] reloc pc : [<808123c4>] lr : [<8080baaf>] sp : 9df1ede0 ip : 00000000 fp : 80800020 r10: 00000003 r9 : 9df1eeb8 r8 : 9df20268 r7 : 00000200 r6 : 9ff954f0 r5 : 9df1ee44 r4 : bb86f00e r3 : 9df20260 r2 : 00000001 r1 : 00000018 r0 : 9df20268 Flags: NzCv IRQs off FIQs on Mode SVC_32 Code: f1a02c04 4c4f0308 0101f022 0201f002 (185e68a7) Resetting CPU ... resetting ... U-Boot SPL 2018.09-00002-g0b54a51eee (Sep 10 2018 - 19:41:39 -0500) Trying to boot from MMC1 Loading Environment from EXT4... ** File not found /boot/uboot.env ** ** Unable to read "/boot/uboot.env" from mmc0:1 ** U-Boot 2018.09-00002-g0b54a51eee (Sep 10 2018 - 19:41:39 -0500), Build: jenkins-github_Bootloader-Builder-65 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: Global warm SW reset has occurred. 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 2 seconds board_name=[A335BNLT] ... board_rev=[00A5] ... 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 ... gpio: pin 55 (gpio 55) value is 1 2099 bytes read in 13 ms (157.2 KiB/s) Loaded environment from /boot/uEnv.txt Checking if uname_r is set in /boot/uEnv.txt... gpio: pin 56 (gpio 56) value is 1 Running uname_boot ... loading /boot/vmlinuz-4.14.71-ti-r80 ... 10416640 bytes read in 668 ms (14.9 MiB/s) debug: [enable_uboot_overlays=1] ... debug: [enable_uboot_cape_universal=1] ... debug: [uboot_base_dtb_univ=am335x-boneblack-uboot-univ.dtb] ... uboot_overlays: [uboot_base_dtb=am335x-boneblack-uboot-univ.dtb] ... uboot_overlays: Switching too: dtb=am335x-boneblack-uboot-univ.dtb ... loading /boot/dtbs/4.14.71-ti-r80/am335x-boneblack-uboot-univ.dtb ... 161723 bytes read in 28 ms (5.5 MiB/s) uboot_overlays: [fdt_buffer=0x60000] ... uboot_overlays: loading /lib/firmware/BB-BONE-eMMC1-01-00A0.dtbo ... 1440 bytes read in 24 ms (58.6 KiB/s) uboot_overlays: loading /lib/firmware/BB-HDMI-TDA998x-00A0.dtbo ... 5127 bytes read in 31 ms (161.1 KiB/s) uboot_overlays: loading /lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo ... 3513 bytes read in 40 ms (85 KiB/s) loading /boot/initrd.img-4.14.71-ti-r80 ... 4739448 bytes read in 308 ms (14.7 MiB/s) debug: [console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet] ... debug: [bootz 0x82000000 0x88080000:485178 88000000] ... ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Loading Ramdisk to 8fb7a000, end 8ffff178 ... OK reserving fdt memory region: addr=88000000 size=89000 Loading Device Tree to 8faee000, end 8fb79fff ... OK Starting kernel ...
最后在https://devel.rtems.org/wiki/Boards/Beagle%20Board根据这边说明找到
按照上面说明下载刻录更新成功。
正常启动的记录如下:
U-Boot SPL 2019.04-00002-g9ca2c5819f (May 20 2019 - 13:06:28 -0500) Trying to boot from MMC1 Loading Environment from EXT4... ** File not found /boot/uboot.env ** ** Unable to read "/boot/uboot.env" from mmc0:1 ** U-Boot 2019.04-00002-g9ca2c5819f (May 20 2019 - 13:06:28 -0500), Build: jenkins-github_Bootloader-Builder-120 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 2 seconds board_name=[A335BNLT] ... board_rev=[00A5] ... 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 ... gpio: pin 55 (gpio 55) value is 1 2365 bytes read in 24 ms (95.7 KiB/s) Loaded environment from /boot/uEnv.txt Checking if uname_r is set in /boot/uEnv.txt... gpio: pin 56 (gpio 56) value is 1 Running uname_boot ... loading /boot/vmlinuz-4.14.108-ti-r106 ... 9925120 bytes read in 641 ms (14.8 MiB/s) debug: [enable_uboot_overlays=1] ... debug: [enable_uboot_cape_universal=1] ... debug: [uboot_base_dtb_univ=am335x-boneblack-uboot-univ.dtb] ... uboot_overlays: [uboot_base_dtb=am335x-boneblack-uboot-univ.dtb] ... uboot_overlays: Switching too: dtb=am335x-boneblack-uboot-univ.dtb ... loading /boot/dtbs/4.14.108-ti-r106/am335x-boneblack-uboot-univ.dtb ... 162891 bytes read in 75 ms (2.1 MiB/s) uboot_overlays: [fdt_buffer=0x60000] ... uboot_overlays: loading /lib/firmware/BB-BONE-eMMC1-01-00A0.dtbo ... 1440 bytes read in 251 ms (4.9 KiB/s) uboot_overlays: loading /lib/firmware/BB-HDMI-TDA998x-00A0.dtbo ... 4896 bytes read in 123 ms (38.1 KiB/s) uboot_overlays: loading /lib/firmware/BB-ADC-00A0.dtbo ... 711 bytes read in 103 ms (5.9 KiB/s) uboot_overlays: loading /lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo ... 3513 bytes read in 52 ms (65.4 KiB/s) loading /boot/initrd.img-4.14.108-ti-r106 ... 4034602 bytes read in 271 ms (14.2 MiB/s) debug: [console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 quiet cape_universal=enable] ... debug: [bootz 0x82000000 0x88080000:3d902a 88000000] ... ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Loading Ramdisk to 8fc26000, end 8ffff02a ... OK Loading Device Tree to 8fb9a000, end 8fc25fff ... OK Starting kernel ... [ 0.002118] timer_probe: no matching timers found [ 0.939857] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle [ 1.251011] omap_voltage_late_init: Voltage driver support not added [ 1.258087] PM: Cannot get wkup_m3_ipc handle [ 1.452566] hdmi-audio-codec hdmi-audio-codec.1.auto: ASoC: no source widget found for Playback [ 1.461549] hdmi-audio-codec hdmi-audio-codec.1.auto: ASoC: Failed to add route Playback -> direct -> TX Debian GNU/Linux 9 beaglebone ttyS0 BeagleBoard.org Debian Image 2019-06-02 Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian default username:password is [debian:temppwd] beaglebone login: root Password: Login incorrect beaglebone login: root Password: The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@beaglebone:~# root@beaglebone:~# ls root@beaglebone:~# ls