Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local bootloader not found during image creation #198

Open
me21 opened this issue Jun 27, 2022 · 6 comments
Open

Local bootloader not found during image creation #198

me21 opened this issue Jun 27, 2022 · 6 comments

Comments

@me21
Copy link

me21 commented Jun 27, 2022

I'd like to supply my local U-Boot build for the Beaglebone Black. I'm running the script with the following parameters:

./setup_sdcard.sh --img-1gb my_image                 --dtb beaglebone --spl <my_SPL_path> --bootloader <my_bootloader_path> --rootfs_label rootfs --hostname beaglebone --enable-cape-universal --enable-uboot-pru-rproc-419ti

It fails on

if [ "${conf_bl_distro_SPL}" ] ; then
cp -v ./${conf_bl_distro_SPL} ${TEMPDIR}/disk/opt/backup/uboot/${spl_uboot_name}

with

Backup version of u-boot (MLO): /opt/backup/uboot/
cp: failed to execute stat for './u-boot/bb-u-boot-am335x-evm/MLO': No such file or directory.

Adding extra check so that the if statement looks like if [ "${conf_bl_distro_SPL}" ] && [ ! "${USE_LOCAL_BOOT}" ] ; then fixes the error.

A similar edit is applied to the subsequent if at

if [ "${conf_bl_distro_UBOOT}" ] ; then
.

Apparently the cause is the script doesn't properly check --spl and --bootloader options when creating backup version of u-boot, so that conf_bl_distro_SPL and conf_bl_distro_UBOOT from configuration files take precedence.

@RobertCNelson
Copy link
Owner

idk....

voodoo@hestia:~/Downloads/debian-11.3-iot-armhf-2022-06-28$ sudo ./setup_sdcard.sh --img-8gb test --dtb beaglebone --spl ./u-boot/bb-u-boot-am335x-evm/MLO --bootloader ./u-boot/bb-u-boot-am335x-evm/u-boot-dtb.img 
syncing media... 
0+0 records in
0+0 records out
0 bytes copied, 4.5531e-05 s, 0.0 kB/s
-----------------------------
U-Boot Overlays Enabled...
Debug: ARM rootfs: armhf-rootfs-debian-bullseye.tar

Using Locally Stored Device Bootloader
-----------------------------
SPL Bootloader: MLO
UBOOT Bootloader: u-boot-dtb.img

Using dd to place bootloader on drive
-----------------------------
MLO: [dd if=../dl/MLO of=/home/voodoo/Downloads/debian-11.3-iot-armhf-2022-06-28/test-8gb.img count=2 seek=1 conv=notrunc bs=128k]
-----------------------------
0+1 records in
0+1 records out
106028 bytes (106 kB, 104 KiB) copied, 0.000133203 s, 796 MB/s
-----------------------------
u-boot.img: [dd if=..dl/u-boot-dtb.img of=/home/voodoo/Downloads/debian-11.3-iot-armhf-2022-06-28/test-8gb.img count=4 seek=1 conv=notrunc bs=384k]
-----------------------------
2+1 records in
2+1 records out
987236 bytes (987 kB, 964 KiB) copied, 0.000483909 s, 2.0 GB/s
-----------------------------
log: sfdisk: 2.26.x or greater detected
sfdisk: [sfdisk from util-linux 2.36.1]
sfdisk: [--force  /home/voodoo/Downloads/debian-11.3-iot-armhf-2022-06-28/test-8gb.img]
sfdisk: [4M,,L,*]
Checking that no-one is using this disk right now ... OK

Disk /home/voodoo/Downloads/debian-11.3-iot-armhf-2022-06-28/test-8gb.img: 7.03 GiB, 7549747200 bytes, 14745600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

>>> Created a new DOS disklabel with disk identifier 0xede59f83.
/home/voodoo/Downloads/debian-11.3-iot-armhf-2022-06-28/test-8gb.img1: Created a new partition 1 of type 'Linux' and of size 7 GiB.
/home/voodoo/Downloads/debian-11.3-iot-armhf-2022-06-28/test-8gb.img2: Done.

New situation:
Disklabel type: dos
Disk identifier: 0xede59f83

Device                                                                Boot Start      End  Sectors Size Id Type
/home/voodoo/Downloads/debian-11.3-iot-armhf-2022-06-28/test-8gb.img1 *     8192 14745599 14737408   7G 83 Linux

The partition table has been altered.
Syncing disks.
Partition Setup:
-----------------------------
Disk /home/voodoo/Downloads/debian-11.3-iot-armhf-2022-06-28/test-8gb.img: 7.03 GiB, 7549747200 bytes, 14745600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xede59f83

Device                                                                Boot Start      End  Sectors Size Id Type
/home/voodoo/Downloads/debian-11.3-iot-armhf-2022-06-28/test-8gb.img1 *     8192 14745599 14737408   7G 83 Linux
-----------------------------
add map loop1p1 (254:1): 0 14737408 linear 7:1 8192
Formating with: [mkfs.ext4  /dev/mapper/loop1p1 -L rootfs]
-----------------------------
mke2fs 1.46.2 (28-Feb-2021)
Discarding device blocks: done                            
Creating filesystem with 1842176 4k blocks and 460560 inodes
Filesystem UUID: dac6f27b-b5d0-4a80-907e-b2557f2ba60d
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done 

Populating Boot Partition
-----------------------------
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0         7:0    0   1.8G  0 loop 
├─loop0p1   254:0    0   1.8G  0 part /tmp/tmp.E29wUm0dEw/disk
└─loop0p1   259:9    0   1.8G  0 part 
loop1         7:1    0     7G  0 loop 
├─loop1p1   254:1    0     7G  0 part /tmp/tmp.tysVP6PFzx/disk
└─loop1p1   259:10   0     7G  0 part 
sda           8:0    0 931.5G  0 disk 
├─sda1        8:1    0   512M  0 part 
└─sda2        8:2    0   931G  0 part 
sdc           8:32   1  14.8G  0 disk 
└─sdc1        8:33   1   7.4G  0 part /tmp/tmp.RDVhlZPU36/disk
nvme0n1     259:0    0 931.5G  0 disk 
├─nvme0n1p1 259:2    0   512M  0 part /boot/efi
├─nvme0n1p2 259:3    0 930.1G  0 part /
└─nvme0n1p3 259:4    0   977M  0 part [SWAP]
nvme1n1     259:1    0 465.8G  0 disk 
├─nvme1n1p1 259:5    0   128M  0 part 
├─nvme1n1p2 259:6    0   499M  0 part 
├─nvme1n1p3 259:7    0   100M  0 part 
└─nvme1n1p4 259:8    0 465.1G  0 part 
-----------------------------
'/home/voodoo/Downloads/debian-11.3-iot-armhf-2022-06-28/ID.txt' -> '/tmp/tmp.tysVP6PFzx/disk/ID.txt'
Debug: Contents of Boot Partition
-----------------------------
total 20K
-rw-r--r-- 1 root root  53 Jun 28 13:27 ID.txt
drwx------ 2 root root 16K Jun 28 13:27 lost+found
24K	/tmp/tmp.tysVP6PFzx/disk/
-----------------------------
Finished populating Boot Partition
-----------------------------
Populating rootfs Partition
Please be patient, this may take a few minutes, as its transfering a lot of data..
-----------------------------
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0         7:0    0   1.8G  0 loop 
├─loop0p1   254:0    0   1.8G  0 part /tmp/tmp.E29wUm0dEw/disk
└─loop0p1   259:9    0   1.8G  0 part 
loop1         7:1    0     7G  0 loop 
├─loop1p1   254:1    0     7G  0 part /tmp/tmp.tysVP6PFzx/disk
└─loop1p1   259:10   0     7G  0 part 
sda           8:0    0 931.5G  0 disk 
├─sda1        8:1    0   512M  0 part 
└─sda2        8:2    0   931G  0 part 
sdc           8:32   1  14.8G  0 disk 
└─sdc1        8:33   1   7.4G  0 part /tmp/tmp.RDVhlZPU36/disk
nvme0n1     259:0    0 931.5G  0 disk 
├─nvme0n1p1 259:2    0   512M  0 part /boot/efi
├─nvme0n1p2 259:3    0 930.1G  0 part /
└─nvme0n1p3 259:4    0   977M  0 part [SWAP]
nvme1n1     259:1    0 465.8G  0 disk 
├─nvme1n1p1 259:5    0   128M  0 part 
├─nvme1n1p2 259:6    0   499M  0 part 
├─nvme1n1p3 259:7    0   100M  0 part 
└─nvme1n1p4 259:8    0 465.1G  0 part 
-----------------------------
1.80GiB 0:00:01 [ 928MiB/s] [========================================================================================================================================================>] 100%            
Transfer of data is Complete, now syncing data to disk...
Disk Size
1.9G	/tmp/tmp.tysVP6PFzx/disk/
-----------------------------
-----------------------------
debug: kernel_select: picking the first available kernel...
debug: kernel_select: found: [5.10.109-ti-r45]
/tmp/tmp.tysVP6PFzx/disk/boot/
├── config-5.10.109-ti-r45
├── dtbs
│   └── 5.10.109-ti-r45
│       ├── am335x-baltos-ir2110.dtb
│       ├── am335x-baltos-ir3220.dtb
│       ├── am335x-baltos-ir5221.dtb
│       ├── am335x-base0033.dtb
│       ├── am335x-boneblack.dtb
│       ├── am335x-boneblack-pps.dtb
│       ├── am335x-boneblack-pruswuart.dtb
│       ├── am335x-boneblack-uboot.dtb
│       ├── am335x-boneblack-uboot-univ.dtb
│       ├── am335x-boneblack-wireless.dtb
│       ├── am335x-boneblue.dtb
│       ├── am335x-bone.dtb
│       ├── am335x-bonegreen.dtb
│       ├── am335x-bonegreen-gateway.dtb
│       ├── am335x-bonegreen-wireless.dtb
│       ├── am335x-bonegreen-wireless-uboot-univ.dtb
│       ├── am335x-bone-uboot-univ.dtb
│       ├── am335x-chiliboard.dtb
│       ├── am335x-cm-t335.dtb
│       ├── am335x-evm.dtb
│       ├── am335x-evmsk.dtb
│       ├── am335x-guardian.dtb
│       ├── am335x-icev2.dtb
│       ├── am335x-icev2-prueth.dtb
│       ├── am335x-lxm.dtb
│       ├── am335x-moxa-uc-2101.dtb
│       ├── am335x-moxa-uc-8100-me-t.dtb
│       ├── am335x-nano.dtb
│       ├── am335x-netcan-plus-1xx.dtb
│       ├── am335x-netcom-plus-2xx.dtb
│       ├── am335x-netcom-plus-8xx.dtb
│       ├── am335x-osd3358-sm-red.dtb
│       ├── am335x-pdu001.dtb
│       ├── am335x-pepper.dtb
│       ├── am335x-phycore-rdk.dtb
│       ├── am335x-pocketbeagle.dtb
│       ├── am335x-regor-rdk.dtb
│       ├── am335x-sancloud-bbe.dtb
│       ├── am335x-sancloud-bbe-extended-wifi.dtb
│       ├── am335x-sancloud-bbe-extended-wifi-uboot.dtb
│       ├── am335x-sancloud-bbe-extended-wifi-uboot-univ.dtb
│       ├── am335x-sancloud-bbe-lite.dtb
│       ├── am335x-sancloud-bbe-lite-uboot.dtb
│       ├── am335x-sancloud-bbe-lite-uboot-univ.dtb
│       ├── am335x-sancloud-bbe-uboot.dtb
│       ├── am335x-sancloud-bbe-uboot-univ.dtb
│       ├── am335x-sbc-t335.dtb
│       ├── am335x-shc.dtb
│       ├── am335x-sl50.dtb
│       ├── am335x-wega-rdk.dtb
│       ├── am571x-idk.dtb
│       ├── am5729-beagleboneai.dtb
│       ├── am572x-idk.dtb
│       ├── am574x-idk.dtb
│       ├── am57xx-beagle-x15.dtb
│       ├── am57xx-beagle-x15-revb1.dtb
│       ├── am57xx-beagle-x15-revc.dtb
│       ├── am57xx-cl-som-am57x.dtb
│       ├── am57xx-sbc-am57x.dtb
│       ├── dra71-evm.dtb
│       ├── dra72-evm.dtb
│       ├── dra72-evm-revc.dtb
│       ├── dra76-evm.dtb
│       ├── dra7-evm.dtb
│       ├── omap5-cm-t54.dtb
│       ├── omap5-igep0050.dtb
│       ├── omap5-sbc-t54.dtb
│       ├── omap5-uevm.dtb
│       └── overlays
│           ├── AM335X-PRU-UIO-00A0.dtbo
│           ├── AM57XX-PRU-UIO-00A0.dtbo
│           ├── BB-ADC-00A0.dtbo
│           ├── BB-BBBW-WL1835-00A0.dtbo
│           ├── BB-BBGG-WL1835-00A0.dtbo
│           ├── BB-BBGW-WL1835-00A0.dtbo
│           ├── BB-BONE-4D5R-01-00A1.dtbo
│           ├── BB-BONE-eMMC1-01-00A0.dtbo
│           ├── BB-BONE-LCD4-01-00A1.dtbo
│           ├── BB-BONE-NH7C-01-A0.dtbo
│           ├── BB-CAPE-DISP-CT4-00A0.dtbo
│           ├── BB-HDMI-TDA998x-00A0.dtbo
│           ├── BB-I2C2-BME680.dtbo
│           ├── BBORG_COMMS-00A2.dtbo
│           ├── BBORG_FAN-A000.dtbo
│           ├── BBORG_RELAY-00A2.dtbo
│           ├── BB-SPIDEV0-00A0.dtbo
│           ├── BB-SPIDEV1-00A0.dtbo
│           ├── BB-W1-P9.12-00A0.dtbo
│           ├── BONE-ADC.dtbo
│           ├── M-BB-BBG-00A0.dtbo
│           ├── M-BB-BBGG-00A0.dtbo
│           ├── PB-HACKADAY-2021.dtbo
│           ├── PB-MIKROBUS-0.dtbo
│           └── PB-MIKROBUS-1.dtbo
├── initrd.img-5.10.109-ti-r45
├── System.map-5.10.109-ti-r45
└── vmlinuz-5.10.109-ti-r45

3 directories, 97 files
/boot/uEnv.txt---------------
#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0

uname_r=5.10.109-ti-r45
#uuid=
#dtb=

###U-Boot Overlays###
###Documentation: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays
###Master Enable
enable_uboot_overlays=1
###
###Overide capes with eeprom
#uboot_overlay_addr0=<file0>.dtbo
#uboot_overlay_addr1=<file1>.dtbo
#uboot_overlay_addr2=<file2>.dtbo
#uboot_overlay_addr3=<file3>.dtbo
###
###Additional custom capes
#uboot_overlay_addr4=<file4>.dtbo
#uboot_overlay_addr5=<file5>.dtbo
#uboot_overlay_addr6=<file6>.dtbo
#uboot_overlay_addr7=<file7>.dtbo
###
###Custom Cape
#dtb_overlay=<file8>.dtbo
###
###Disable auto loading of virtual capes (emmc/video/wireless/adc)
#disable_uboot_overlay_emmc=1
#disable_uboot_overlay_video=1
#disable_uboot_overlay_audio=1
#disable_uboot_overlay_wireless=1
#disable_uboot_overlay_adc=1
###
###PRUSS OPTIONS
###pru_rproc (4.14.x-ti kernel)
#uboot_overlay_pru=AM335X-PRU-RPROC-4-14-TI-00A0.dtbo
###pru_rproc (4.19.x-ti kernel)
#uboot_overlay_pru=AM335X-PRU-RPROC-4-19-TI-00A0.dtbo
###pru_uio (4.14.x-ti, 4.19.x-ti & mainline/bone kernel)
uboot_overlay_pru=AM335X-PRU-UIO-00A0.dtbo
###
###Cape Universal Enable
#enable_uboot_cape_universal=1
###
###Debug: disable uboot autoload of Cape
#disable_uboot_overlay_addr0=1
#disable_uboot_overlay_addr1=1
#disable_uboot_overlay_addr2=1
#disable_uboot_overlay_addr3=1
###
###U-Boot fdt tweaks... (60000 = 384KB)
#uboot_fdt_buffer=0x60000
###U-Boot Overlays###

console=ttyS0,115200n8
cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet

#In the event of edid real failures, uncomment this next line:
#cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet video=HDMI-A-1:1024x768@60e

#Use an overlayfs on top of a read-only root filesystem:
#cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet overlayroot=tmpfs

##enable Generic eMMC Flasher:
#cmdline=init=/usr/sbin/init-beagle-flasher

-----------------------------
Backup version of u-boot (MLO): /opt/backup/uboot/
'./u-boot/bb-u-boot-am335x-evm/MLO' -> '/tmp/tmp.tysVP6PFzx/disk/opt/backup/uboot/MLO'
Backup version of u-boot (u-boot.img): /opt/backup/uboot/
'./u-boot/bb-u-boot-am335x-evm/u-boot.img' -> '/tmp/tmp.tysVP6PFzx/disk/opt/backup/uboot/u-boot.img'
making ping/ping6 setuid root
'/tmp/tmp.tysVP6PFzx/disk/etc/beagle-flasher/beaglebone-black-microsd-to-emmc' -> '/tmp/tmp.tysVP6PFzx/disk/etc/default/beagle-flasher'
/tmp/tmp.tysVP6PFzx/disk/boot/
├── config-5.10.109-ti-r45
├── dtbs
│   └── 5.10.109-ti-r45
│       ├── am335x-baltos-ir2110.dtb
│       ├── am335x-baltos-ir3220.dtb
│       ├── am335x-baltos-ir5221.dtb
│       ├── am335x-base0033.dtb
│       ├── am335x-boneblack.dtb
│       ├── am335x-boneblack-pps.dtb
│       ├── am335x-boneblack-pruswuart.dtb
│       ├── am335x-boneblack-uboot.dtb
│       ├── am335x-boneblack-uboot-univ.dtb
│       ├── am335x-boneblack-wireless.dtb
│       ├── am335x-boneblue.dtb
│       ├── am335x-bone.dtb
│       ├── am335x-bonegreen.dtb
│       ├── am335x-bonegreen-gateway.dtb
│       ├── am335x-bonegreen-wireless.dtb
│       ├── am335x-bonegreen-wireless-uboot-univ.dtb
│       ├── am335x-bone-uboot-univ.dtb
│       ├── am335x-chiliboard.dtb
│       ├── am335x-cm-t335.dtb
│       ├── am335x-evm.dtb
│       ├── am335x-evmsk.dtb
│       ├── am335x-guardian.dtb
│       ├── am335x-icev2.dtb
│       ├── am335x-icev2-prueth.dtb
│       ├── am335x-lxm.dtb
│       ├── am335x-moxa-uc-2101.dtb
│       ├── am335x-moxa-uc-8100-me-t.dtb
│       ├── am335x-nano.dtb
│       ├── am335x-netcan-plus-1xx.dtb
│       ├── am335x-netcom-plus-2xx.dtb
│       ├── am335x-netcom-plus-8xx.dtb
│       ├── am335x-osd3358-sm-red.dtb
│       ├── am335x-pdu001.dtb
│       ├── am335x-pepper.dtb
│       ├── am335x-phycore-rdk.dtb
│       ├── am335x-pocketbeagle.dtb
│       ├── am335x-regor-rdk.dtb
│       ├── am335x-sancloud-bbe.dtb
│       ├── am335x-sancloud-bbe-extended-wifi.dtb
│       ├── am335x-sancloud-bbe-extended-wifi-uboot.dtb
│       ├── am335x-sancloud-bbe-extended-wifi-uboot-univ.dtb
│       ├── am335x-sancloud-bbe-lite.dtb
│       ├── am335x-sancloud-bbe-lite-uboot.dtb
│       ├── am335x-sancloud-bbe-lite-uboot-univ.dtb
│       ├── am335x-sancloud-bbe-uboot.dtb
│       ├── am335x-sancloud-bbe-uboot-univ.dtb
│       ├── am335x-sbc-t335.dtb
│       ├── am335x-shc.dtb
│       ├── am335x-sl50.dtb
│       ├── am335x-wega-rdk.dtb
│       ├── am571x-idk.dtb
│       ├── am5729-beagleboneai.dtb
│       ├── am572x-idk.dtb
│       ├── am574x-idk.dtb
│       ├── am57xx-beagle-x15.dtb
│       ├── am57xx-beagle-x15-revb1.dtb
│       ├── am57xx-beagle-x15-revc.dtb
│       ├── am57xx-cl-som-am57x.dtb
│       ├── am57xx-sbc-am57x.dtb
│       ├── dra71-evm.dtb
│       ├── dra72-evm.dtb
│       ├── dra72-evm-revc.dtb
│       ├── dra76-evm.dtb
│       ├── dra7-evm.dtb
│       ├── omap5-cm-t54.dtb
│       ├── omap5-igep0050.dtb
│       ├── omap5-sbc-t54.dtb
│       ├── omap5-uevm.dtb
│       └── overlays
│           ├── AM335X-PRU-UIO-00A0.dtbo
│           ├── AM57XX-PRU-UIO-00A0.dtbo
│           ├── BB-ADC-00A0.dtbo
│           ├── BB-BBBW-WL1835-00A0.dtbo
│           ├── BB-BBGG-WL1835-00A0.dtbo
│           ├── BB-BBGW-WL1835-00A0.dtbo
│           ├── BB-BONE-4D5R-01-00A1.dtbo
│           ├── BB-BONE-eMMC1-01-00A0.dtbo
│           ├── BB-BONE-LCD4-01-00A1.dtbo
│           ├── BB-BONE-NH7C-01-A0.dtbo
│           ├── BB-CAPE-DISP-CT4-00A0.dtbo
│           ├── BB-HDMI-TDA998x-00A0.dtbo
│           ├── BB-I2C2-BME680.dtbo
│           ├── BBORG_COMMS-00A2.dtbo
│           ├── BBORG_FAN-A000.dtbo
│           ├── BBORG_RELAY-00A2.dtbo
│           ├── BB-SPIDEV0-00A0.dtbo
│           ├── BB-SPIDEV1-00A0.dtbo
│           ├── BB-W1-P9.12-00A0.dtbo
│           ├── BONE-ADC.dtbo
│           ├── M-BB-BBG-00A0.dtbo
│           ├── M-BB-BBGG-00A0.dtbo
│           ├── PB-HACKADAY-2021.dtbo
│           ├── PB-MIKROBUS-0.dtbo
│           └── PB-MIKROBUS-1.dtbo
├── initrd.img-5.10.109-ti-r45
├── SOC.sh
├── System.map-5.10.109-ti-r45
├── uboot
├── uEnv.txt
└── vmlinuz-5.10.109-ti-r45

4 directories, 99 files
Finished populating rootfs Partition
-----------------------------
setup_sdcard.sh script complete
-----------------------------
The default user:password for this image:
debian:temppwd
-----------------------------
Image file: test-8gb.img
-----------------------------

@me21
Copy link
Author

me21 commented Jun 29, 2022

Here's my build log:
sudo ./setup_sdcard.sh --img-1gb my_image --dtb beaglebone --spl ../../../u-boot/MLO --bootloader ../../../u-boot/u-boot-dtb.img --rootfs_label rootfs --hostname beaglebone --enable-cape-universal --enable-uboot-pru-rproc-419ti

build.log

As you can see, it searches for ./u-boot/bb-u-boot-am335x-evm/MLO even though the path specified in the command line is different.

@RobertCNelson
Copy link
Owner

very very weird...

-----------------------------
Backup version of u-boot (MLO): /opt/backup/uboot/
'./u-boot/bb-u-boot-am335x-evm/MLO' -> '/tmp/tmp.tysVP6PFzx/disk/opt/backup/uboot/MLO'
Backup version of u-boot (u-boot.img): /opt/backup/uboot/
'./u-boot/bb-u-boot-am335x-evm/u-boot.img' -> '/tmp/tmp.tysVP6PFzx/disk/opt/backup/uboot/u-boot.img'
making ping/ping6 setuid root

vs:

-----------------------------
Backup version of u-boot (MLO): /opt/backup/uboot/
cp: не удалось выполнить stat для './u-boot/bb-u-boot-am335x-evm/MLO': Нет такого файла или каталога

looks like it didn't pass the path...

@RobertCNelson
Copy link
Owner

are you on git master? wonder how old the setup_sdcard.sh script is... https://github.com/RobertCNelson/omap-image-builder/commits/master/tools/setup_sdcard.sh

@me21
Copy link
Author

me21 commented Jun 29, 2022

azarubkin@ubuntu-2004-vm:~/beaglebone/image-builder$ git branch -v
* master 74c3f405 add EW 2022 demo for BeagleBone AI-64

Based on the lines 1512-1513 of setup_sdcard.sh in my initial message, it looks like it takes path from .conf file there only, ignoring the command line arguments.
Your command doesn't fail because it has u-boot subdirectory in the current dir, whereas my u-boot tree is located outside the image-builder.

@RobertCNelson
Copy link
Owner

okay that's new enough..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants