X-tools and crosstool-ng and other things

Hello,

I am receiving an error that I cannot get past. I set up crosstool-ng, x-tools shows with my handy toolchain, and then I try to use u-boot:

Here is my error…

/bin/sh: 1: ../x-tools/arm-cortex_a8-linux-gnueabihf/bin/arm-cortex_a8-linux-gnueabihf-ld.bfd: not found
make[1]: *** [scripts/Makefile.spl:512: spl/u-boot-spl] Error 127
make: *** [Makefile:2001: spl/u-boot-spl] Error 2

I tried crosstool-ng and linaro. I cannot explain what has happened. So, I started over and now I cannot get past this section of my build.

cd crosstool-ng
./bootstrap
./configure --prefix=${PWD}
make
bin/ct-ng arm-cortex_a8-linux-gnueabi

Once in bin/ct-ng menuconfig for the GUI, I click these options:

  1. I disable rendering the toolchain read-only
  2. I select FPU hardware
  3. I pick neon in the specified FPU

Then, I build w/ bin/ct-ng build which creates the x-tools dir.

Then, I clone u-boot.

make ARCH=arm CROSS_COMPILE=../x-tools/arm-cortex_a8-linux-gnueabihf/bin/arm-cortex_a8-linux-gnueabihf- menuconfig
make ARCH=arm CROSS_COMPILE=../x-tools/arm-cortex_a8-linux-gnueabihf/bin/arm-cortex_a8-linux-gnueabihf- am335x_evm_defconfig
make ARCH=arm CROSS_COMPILE=../x-tools/arm-cortex_a8-linux-gnueabihf/bin/arm-cortex_a8-linux-gnueabihf-

This is where I receive the error from above.

I cannot figure out what exactly I did to get into u-boot to manage the different build requirements, e.g. like board, MLO, and so on.

If anyone has any recommendations, please jump on in.

Seth

P.S. I have been building against a book I purchased w/ ideas relating to my own fstab and I was doing well until…Fri. the 13th! Spooky days ruined it all. Anyway, all jokes aside, it seems I got stumped again.

Oh and Another Thing Here,

I am going to distclean crosstool-ng and restart from scratch. I will update soon.

I just saw the new way of Cross_Compiling from the CC site online. Oops. I will try that idea.

Seth


U-Boot SPL 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)
Trying to boot from MMC1


U-Boot 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)

CPU  : AM335X-GP rev 2.0
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
Reset Source: Global external warm reset has occurred.
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
Core:  150 devices, 14 uclasses, devicetree: separate
WDT:   Started wdt@44e35000 with servicing (60s timeout)
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net:   eth2: ethernet@4a100000, eth3: usb_ether
Press SPACE to abort autoboot in 0 seconds
board_name=[A335BNLT] ...
board_rev=[0A5C] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
Couldn't find partition 0:2 0x82000000
Can't set block device
Couldn't find partition 0:2 0x82000000
Can't set block device
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Scanning disk mmc@48060000.blk...
Scanning disk mmc@481d8000.blk...
Found 4 disks
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
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 ...
271 bytes read in 2 ms (131.8 KiB/s)
gpio: pin 55 (gpio 55) value is 1
Loaded environment from /uEnv.txt
Importing environment from mmc ...
Checking if uenvcmd is set ...
gpio: pin 56 (gpio 56) value is 1
Running uenvcmd ...
Failed to load 'zImage'
Failed to load 'am335x-boneblack.dtb'
zimage: Bad magic!
Checking for: /boot/uEnv.txt ...
** Invalid partition 3 **
Couldn't find partition mmc 0:3
** Invalid partition 4 **
Couldn't find partition mmc 0:4
** Invalid partition 5 **
Couldn't find partition mmc 0:5
** Invalid partition 6 **
Couldn't find partition mmc 0:6
** Invalid partition 7 **
Couldn't find partition mmc 0:7
switch to partitions #0, OK
mmc1(part 0) is current device
** No partition table - mmc 1 **
Couldn't find partition mmc 1: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
mmc1(part 0) is current device
gpio: pin 54 (gpio 54) value is 1
** No partition table - mmc 1 **
Couldn't find partition mmc 1:1
Checking for: /uEnv.txt ...
** No partition table - mmc 1 **
Couldn't find partition mmc 1:1
Checking for: /boot/uEnv.txt ...
** No partition table - mmc 1 **
Couldn't find partition mmc 1:1
** No partition table - mmc 1 **
Couldn't find partition mmc 1:2
** No partition table - mmc 1 **
Couldn't find partition mmc 1:3
** No partition table - mmc 1 **
Couldn't find partition mmc 1:4
** No partition table - mmc 1 **
Couldn't find partition mmc 1:5
** No partition table - mmc 1 **
Couldn't find partition mmc 1:6
** No partition table - mmc 1 **
Couldn't find partition mmc 1:7
starting USB...
Bus usb@47401800: Port not available.
USB is stopped. Please issue 'usb start' first.
starting USB...
Bus usb@47401800: Port not available.
link up on port 0, speed 100, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
DHCP client bound to address 192.168.1.21 (1883 ms)
Using ethernet@4a100000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.21
Filename 'zImage'.
Load address: 0x82000000
Loading: T T T T

Learning slowly, here. If you have any words of wisdom, please let me know.

Seth

Hello,

Okay…I tried to manipulate the older posts, i.e. as I made some headway. It seems my uRamdisk is corrupt. This is what uboot is telling me. I will have the output soon in case anyone is following along.

Seth

I’ve always warned users, if you use “uenvcmd”, while you are free to do anything you want, you must also verify every step…

So take a look closely at what you did in /uEnv.txt and stop “U-Boot” then enter each line at a time and debug what is going on…

Regards,

1 Like
U-Boot SPL 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)
Trying to boot from MMC1


U-Boot 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)

CPU  : AM335X-GP rev 2.0
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
Core:  150 devices, 14 uclasses, devicetree: separate
WDT:   Started wdt@44e35000 with servicing (60s timeout)
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net:   eth2: ethernet@4a100000, eth3: usb_ether
Press SPACE to abort autoboot in 0 seconds
=> fatload mmc 0:1 0x80200000 zImage
9990656 bytes read in 654 ms (14.6 MiB/s)
=> fatload mmc 0:1 0x80f00000 am335x-boneblack.dtb
67151 bytes read in 7 ms (9.1 MiB/s)
=> setenv bootargs console=ttyO0 rdinit=/bin/sh
=> bootz 0x80200000-0x80f00000
Kernel image @ 0x80200000 [ 0x000000 - 0x987200 ]
FDT and ATAGS support not compiled in

resetting ...

U-Boot SPL 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)
Trying to boot from MMC1


U-Boot 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)

CPU  : AM335X-GP rev 2.0
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
Reset Source: Global warm SW reset has occurred.
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
Core:  150 devices, 14 uclasses, devicetree: separate
WDT:   Started wdt@44e35000 with servicing (60s timeout)
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net:   eth2: ethernet@4a100000, eth3: usb_ether
Press SPACE to abort autoboot in 0 seconds
board_name=[A335BNLT] ...
board_rev=[0A5C] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
Couldn't find partition 0:2 0x82000000
Can't set block device
Couldn't find partition 0:2 0x82000000
Can't set block device
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
67151 bytes read in 7 ms (9.1 MiB/s)
Scanning disk mmc@48060000.blk...
Scanning disk mmc@481d8000.blk...
Found 4 disks
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
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/uEnv.txt ...
** Invalid partition 3 **
Couldn't find partition mmc 0:3
** Invalid partition 4 **
Couldn't find partition mmc 0:4
** Invalid partition 5 **
Couldn't find partition mmc 0:5
** Invalid partition 6 **
Couldn't find partition mmc 0:6
** Invalid partition 7 **
Couldn't find partition mmc 0:7
switch to partitions #0, OK
mmc1(part 0) is current device
** No partition table - mmc 1 **
Couldn't find partition mmc 1: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
mmc1(part 0) is current device
gpio: pin 54 (gpio 54) value is 1
** No partition table - mmc 1 **
Couldn't find partition mmc 1:1
Checking for: /uEnv.txt ...
** No partition table - mmc 1 **
Couldn't find partition mmc 1:1
Checking for: /boot/uEnv.txt ...
** No partition table - mmc 1 **
Couldn't find partition mmc 1:1
** No partition table - mmc 1 **
Couldn't find partition mmc 1:2
** No partition table - mmc 1 **
Couldn't find partition mmc 1:3
** No partition table - mmc 1 **
Couldn't find partition mmc 1:4
** No partition table - mmc 1 **
Couldn't find partition mmc 1:5
** No partition table - mmc 1 **
Couldn't find partition mmc 1:6
** No partition table - mmc 1 **
Couldn't find partition mmc 1:7
starting USB...
Bus usb@47401800: Port not available.
USB is stopped. Please issue 'usb start' first.
starting USB...
Bus usb@47401800: Port not available.
link up on port 0, speed 100, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
DHCP client bound to address 192.168.1.21 (2040 ms)
*** ERROR: `serverip' not set
Cannot autoload with TFTPGET
missing environment variable: pxeuuid
Retrieving file: pxelinux.cfg/01-c8-a0-30-ac-e1-13
link up on port 0, speed 100, full duplex
*** ERROR: `serverip' not set
Retrieving file: pxelinux.cfg/C0A80115
link up on port 0, speed 100, full duplex
*** ERROR: `serverip' not set
Retrieving file: pxelinux.cfg/C0A8011
link up on port 0, speed 100, full duplex
*** ERROR: `serverip' not set
Retrieving file: pxelinux.cfg/C0A801
link up on port 0, speed 100, full duplex
*** ERROR: `serverip' not set
Retrieving file: pxelinux.cfg/C0A80
link up on port 0, speed 100, full duplex
*** ERROR: `serverip' not set
Retrieving file: pxelinux.cfg/C0A8
link up on port 0, speed 100, full duplex
*** ERROR: `serverip' not set
Retrieving file: pxelinux.cfg/C0A
link up on port 0, speed 100, full duplex
*** ERROR: `serverip' not set
Retrieving file: pxelinux.cfg/C0
link up on port 0, speed 100, full duplex
*** ERROR: `serverip' not set
Retrieving file: pxelinux.cfg/C
link up on port 0, speed 100, full duplex
*** ERROR: `serverip' not set
Retrieving file: pxelinux.cfg/default-arm-am33xx-am335x
link up on port 0, speed 100, full duplex
*** ERROR: `serverip' not set
Retrieving file: pxelinux.cfg/default-arm-am33xx
link up on port 0, speed 100, full duplex
*** ERROR: `serverip' not set
Retrieving file: pxelinux.cfg/default-arm
link up on port 0, speed 100, full duplex
*** ERROR: `serverip' not set
Retrieving file: pxelinux.cfg/default
link up on port 0, speed 100, full duplex
*** ERROR: `serverip' not set
Config file not found
starting USB...
Bus usb@47401800: Port not available.
link up on port 0, speed 100, full duplex
BOOTP broadcast 1
DHCP client bound to address 192.168.1.21 (210 ms)
*** ERROR: `serverip' not set
Cannot autoload with TFTPGET
link up on port 0, speed 100, full duplex
BOOTP broadcast 1
DHCP client bound to address 192.168.1.21 (207 ms)
*** ERROR: `serverip' not set
Cannot autoload with TFTPGET

This is with uenvcmd in a uEnv.txt file in the /boot partition.

and…

This is what happens without rw and no uEnv.txt file:


BeagleBone Black:
BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net:   eth2: ethernet@4a100000, eth3: usb_ether
Press SPACE to abort autoboot in 0 seconds
=> serverip=192.168.1.1
=> ipaddr=192.168.1.101
=> npath=/home/harl/rootfs
=> bootargs=console=ttyO0,115200 root=/dev/nfs nfsroot=${serverip:${npath},v3 ip=${ipaddr}
=> fatload mmc 0:1 80200000 zImage
9990656 bytes read in 654 ms (14.6 MiB/s)
=> fatload mmc 0:1 80f00000 am335x-boneblack.dtb
67151 bytes read in 7 ms (9.1 MiB/s)
=> bootz 80200000 - 80f00000
Kernel image @ 0x80200000 [ 0x000000 - 0x987200 ]
## Flattened Device Tree blob at 80f00000
   Booting using the fdt blob at 0x80f00000
   Loading Device Tree to 8ffec000, end 8ffff64e ... OK

Starting kernel ...

It seems that rw in bootargs is not allowed. Uboot does not even recognize this command.

Seth

P.S. It just hangs at starting the kernel in uboot. So, I am sure I am missing something. I will go back and set up some other ideas.

Please look very closely at what you actually typed…

bootz 0x80200000-0x80f00000
bootz 80200000 - 80f00000

aka put a space between the 3 memory locations…

Regards,

1 Like

Hello Sir,

Okay…I listened. The error remains:


Kernel image @ 0x80200000 [ 0x000000 - 0x987200 ]
Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid

Back to the ole, drawing board.

Seth

please also include the full u-boot above that…

Regards,

1 Like

Hello Sir,

I had to step away for a bit. Okay so, here is the full u-boot.

U-Boot SPL 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)
Trying to boot from MMC1


U-Boot 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)

CPU  : AM335X-GP rev 2.0
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
Reset Source: Global external warm reset has occurred.
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
Core:  150 devices, 14 uclasses, devicetree: separate
WDT:   Started wdt@44e35000 with servicing (60s timeout)
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net:   eth2: ethernet@4a100000, eth3: usb_ether
Press SPACE to abort autoboot in 0 seconds
=> fatload mmc 0:1 80200000 zImage
9990656 bytes read in 653 ms (14.6 MiB/s)
=> fatload mmc 0:1 80f00000 am335x-boneblack.dtb
67151 bytes read in 7 ms (9.1 MiB/s)
=> fatload mmc 0:1 81000000                     
9990656 bytes read in 654 ms (14.6 MiB/s)
=> setenv bootargs console=ttyO0 rdinit=/bin/sh
=> bootz 80200000 81000000 80f00000
Kernel image @ 0x80200000 [ 0x000000 - 0x987200 ]
Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid
=>

I think this is the output so far on the building for uRamdisk.

Seth

So… at what point did you “fatload” the uRamdisk? if you look above… You loaded zImage and am335x-boneblack.dtb…

But for “uRamdisk”… you have…

=> fatload mmc 0:1 81000000                     
9990656 bytes read in 654 ms (14.6 MiB/s)

but no file name… I’m not sure what random data you pushed into 81000000

Regards,

1 Like

Hello,

I did not load it by name. This may be the issue. I loaded by address without name.

Seth

P.S. Bad notes. You were right. Still, I am hung up. Here is the update.


U-Boot SPL 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)
Trying to boot from MMC1


U-Boot 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)

CPU  : AM335X-GP rev 2.0
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
Reset Source: Global external warm reset has occurred.
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
Core:  150 devices, 14 uclasses, devicetree: separate
WDT:   Started wdt@44e35000 with servicing (60s timeout)
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net:   eth2: ethernet@4a100000, eth3: usb_ether
Press SPACE to abort autoboot in 0 seconds
=> fatload mmc 0:1 80200000 zImage
9990656 bytes read in 652 ms (14.6 MiB/s)
=> fatload mmc 0:1 80f00000 am335x-boneblack.dtb
67151 bytes read in 7 ms (9.1 MiB/s)
=> fatload mmc 0:1 81000000 uRamdisk            
619493 bytes read in 43 ms (13.7 MiB/s)
=> setenv bootargs console=ttyO0 rdinit=/bin/sh
=> bootz 80200000 81000000 80f00000
Kernel image @ 0x80200000 [ 0x000000 - 0x987200 ]
## Loading init Ramdisk from Legacy Image at 81000000 ...
   Image Name:   
   Created:      2022-05-16   4:27:33 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    619429 Bytes = 604.9 KiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 80f00000
   Booting using the fdt blob at 0x80f00000
   Loading Ramdisk to 8ff68000, end 8ffff3a5 ... OK
   Loading Device Tree to 8ff54000, end 8ff6764e ... OK

Starting kernel ...

I’d say it looks fine… You “passed” console=ttyO0, does you Kernel build support “ttyO*” or does it only support “ttyS*” for usart?

Regards,

Hello,

I am not quite sure as of now about passing ttyS* or ttyO*. I will check.

Just a brief history here. I was using busybox to start my fstab and other ideas for use in the terminal.

Seth

P.S. Um…I meant to send this in earlier. Sorry, I am just remembering this post was up. So, I have actually been using crosstool-ng/x-tools for my busybox build, e.g. as they accept no other toolchain from what I have concluded.

I will be trying buildroot and Yocto soon. I think in this book I reference in my builds has some older ideas, i.e. kernel 5.4.x for building env. So, I will have to review it again. Below is the book. Anyway, I will keep taking notes and get back to you. So far, the kernel hangs at Starting kernel ... .

Vasquez, Frank; Simmonds, Chris. Mastering Embedded Linux Programming: Create fast and reliable embedded solutions with Linux 5.4 and the Yocto Project 3.1 (Dunfell) (p. 140). Packt Publishing. Kindle Edition.

Also…I just learned this idea.

If the toolchain is newer than the kernel, it will most likely fail. But…if the kernel is newer than the toolchain, building is possible.

ps, it’s also best to encode the baud rate…

setenv bootargs console=ttyS0,115200n8 rdinit=/bin/sh

It’s very easy to check from your kernel config…

CONFIG_SERIAL_8250_OMAP → ttyS*
CONFIG_SERIAL_OMAP → ttyO*

Regards,

1 Like

Okay, I will try it.

Thank you for taking time out to answer and give insight and guidance.

Seth

@RobertCNelson ,

Sir…sorry. Life happens. I have not been back to the ole bout w/ the x-tools and building. I will get back to it soon, hopefully. Please forgive me.

Seth

Hello Sir,

@RobertCNelson : I did as you mentioned. It still hangs at starting kernel .

Seth

P.S. Here is everything that is taking place:

U-Boot SPL 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)
Trying to boot from MMC1


U-Boot 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)

CPU  : AM335X-GP rev 2.0
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
Core:  150 devices, 14 uclasses, devicetree: separate
WDT:   Started wdt@44e35000 with servicing (60s timeout)
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net:   eth2: ethernet@4a100000, eth3: usb_ether
Press SPACE to abort autoboot in 0 seconds
=> fatload mmc 0:1 0x80200000 zImage
9990656 bytes read in 652 ms (14.6 MiB/s)
=> fatload mmc 0:1 0x80f00000 am335x-boneblack.dtb
67151 bytes read in 7 ms (9.1 MiB/s)
=> fatload mmc 0:1 0x81000000 uRamdisk            
619550 bytes read in 43 ms (13.7 MiB/s)
=> setenv bootargs cosole=ttyS0,115200n8 rdinit=/bin/sh
=> bootz 0x80200000 0x81000000 0x80f00000
Kernel image @ 0x80200000 [ 0x000000 - 0x987200 ]
## Loading init Ramdisk from Legacy Image at 81000000 ...
   Image Name:   
   Created:      2022-05-16  21:44:51 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    619486 Bytes = 605 KiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 80f00000
   Booting using the fdt blob at 0x80f00000
   Loading Ramdisk to 8ff68000, end 8ffff3de ... OK
   Loading Device Tree to 8ff54000, end 8ff6764e ... OK

Starting kernel ...

If you see anything out of the ordinary, please reply when you have time. The only thing here I see is that I am booting from SD Card and not eMMC. Is there a particular boot command to use for booting into SD Card? I really hate stating all of this command in a prompt but I think I need assistance so far:

U-Boot SPL 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)
Trying to boot from MMC1


U-Boot 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)

CPU  : AM335X-GP rev 2.0
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
Core:  150 devices, 14 uclasses, devicetree: separate
WDT:   Started wdt@44e35000 with servicing (60s timeout)
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net:   eth2: ethernet@4a100000, eth3: usb_ether
Press SPACE to abort autoboot in 0 seconds
=> fatload mmc 0:1 0x80200000 zImage
9990656 bytes read in 654 ms (14.6 MiB/s)
=> fatload mmc 0:1 0x80200000 am335x-boneblack.dtb
67151 bytes read in 6 ms (10.7 MiB/s)
=> fatload mmc 0:1 0x81000000 uRamdisk            
619550 bytes read in 43 ms (13.7 MiB/s)
=> setenv bootargs console=ttyO0,115200n8 rdinit=/bin/sh
=> bootz 0x80200000 0x80f00000 0x8100000
zimage: Bad magic!
=> fatload mmc 0:1 0x80200000 zImage                    
9990656 bytes read in 654 ms (14.6 MiB/s)
=> fatload mmc 0:1 0x80f00000 am335x-boneblack.dtb      
67151 bytes read in 7 ms (9.1 MiB/s)
=> fatload mmc 0:1 0x81000000 uRamdisk                  
619550 bytes read in 43 ms (13.7 MiB/s)
=> setenv bootargs console=ttyO0,115200n8 rdinit=/bin/sh
=> bootz 0x80200000 0x80f00000 0x8100000                
Kernel image @ 0x80200000 [ 0x000000 - 0x987200 ]
## Loading ramdisk from FIT Image at 80f00000 ...
Bad FIT ramdisk image format! (err=-42)
Ramdisk image is corrupt or invalid
=> bootz 0x80200000 0x81000000 0x80f0000
Kernel image @ 0x80200000 [ 0x000000 - 0x987200 ]
## Loading init Ramdisk from Legacy Image at 81000000 ...
   Image Name:   
   Created:      2022-05-16  21:44:51 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    619486 Bytes = 605 KiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
data abort
pc : [<9ff6c134>]	   lr : [<9ff6d28d>]
reloc pc : [<80805134>]	   lr : [<8080628d>]
sp : 9df31f50  ip : 00000000	 fp : 00000000
r10: 9df4c2f0  r9 : 9df46eb0	 r8 : 00000002
r7 : 9ffe3e48  r6 : 00000003	 r5 : 080f0000  r4 : 9ffe3da8
r3 : 56190527  r2 : 00000008	 r1 : 080f0000  r0 : 080f0000
Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32 (T)
Code: fb04 0000 b510 4b0a (6802) 4604 
Resetting CPU ...

resetting ...

U-Boot SPL 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)
Trying to boot from MMC1


U-Boot 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)

CPU  : AM335X-GP rev 2.0
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
Reset Source: Global warm SW reset has occurred.
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
Core:  150 devices, 14 uclasses, devicetree: separate
WDT:   Started wdt@44e35000 with servicing (60s timeout)
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net:   eth2: ethernet@4a100000, eth3: usb_ether
Press SPACE to abort autoboot in 0 seconds
board_name=[A335BNLT] ...
board_rev=[0A5C] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
Couldn't find partition 0:2 0x82000000
Can't set block device
Couldn't find partition 0:2 0x82000000
Can't set block device
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
67151 bytes read in 7 ms (9.1 MiB/s)
Scanning disk mmc@48060000.blk...
Scanning disk mmc@481d8000.blk...
Found 4 disks
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
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/uEnv.txt ...
** Invalid partition 3 **
Couldn't find partition mmc 0:3
** Invalid partition 4 **
Couldn't find partition mmc 0:4
** Invalid partition 5 **
Couldn't find partition mmc 0:5
** Invalid partition 6 **
Couldn't find partition mmc 0:6
** Invalid partition 7 **
Couldn't find partition mmc 0:7
switch to partitions #0, OK
mmc1(part 0) is current device
** No partition table - mmc 1 **
Couldn't find partition mmc 1: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
mmc1(part 0) is current device
gpio: pin 54 (gpio 54) value is 1
** No partition table - mmc 1 **
Couldn't find partition mmc 1:1
Checking for: /uEnv.txt ...
** No partition table - mmc 1 **
Couldn't find partition mmc 1:1
Checking for: /boot/uEnv.txt ...
** No partition table - mmc 1 **
Couldn't find partition mmc 1:1
** No partition table - mmc 1 **
Couldn't find partition mmc 1:2
** No partition table - mmc 1 **
Couldn't find partition mmc 1:3
** No partition table - mmc 1 **
Couldn't find partition mmc 1:4
** No partition table - mmc 1 **
Couldn't find partition mmc 1:5
** No partition table - mmc 1 **
Couldn't find partition mmc 1:6
** No partition table - mmc 1 **
Couldn't find partition mmc 1:7
starting USB...
Bus usb@47401800: Port not available.
USB is stopped. Please issue 'usb start' first.
starting USB...
Bus usb@47401800: Port not available.
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
BOOTP broadcast 11
BOOTP broadcast 12
BOOTP broadcast 13
BOOTP broadcast 14
BOOTP broadcast 15
BOOTP broadcast 16
BOOTP broadcast 17
BOOTP broadcast 18
BOOTP broadcast 19
BOOTP broadcast 20
BOOTP broadcast 21
BOOTP broadcast 22
BOOTP broadcast 23
BOOTP broadcast 24
BOOTP broadcast 25
BOOTP broadcast 26
BOOTP broadcast 27
BOOTP broadcast 28
BOOTP broadcast 29

Retry time exceeded; starting again
missing environment variable: pxeuuid
Retrieving file: pxelinux.cfg/01-de-ad-be-ef-00-01
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
*** ERROR: `serverip' not set
Retrieving file: pxelinux.cfg/00000000
data abort
pc : [<9ff7cbf2>]	   lr : [<9ff7d367>]
reloc pc : [<80815bf2>]	   lr : [<80816367>]
sp : 9df315a0  ip : 9df5adb0	 fp : 9ffeec6c
r10: 9ffeec70  r9 : 9df46eb0	 r8 : 00000108
r7 : 00000100  r6 : 00000160	 r5 : 9ffe01e4  r4 : 00000100
r3 : 00000168  r2 : 9ffe0300	 r1 : 00000001  r0 : 9df52128
Flags: nzCv  IRQs off  FIQs on  Mode SVC_32 (T)
Code: 68c2 6881 f023 0303 (60ca) 4403 
Resetting CPU ...

resetting ...

U-Boot SPL 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)
Trying to boot from MMC1


U-Boot 2022.04-00023-g4237220b (May 15 2022 - 23:00:26 -0500)

CPU  : AM335X-GP rev 2.0
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
Reset Source: Global warm SW reset has occurred.
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
Core:  150 devices, 14 uclasses, devicetree: separate
WDT:   Started wdt@44e35000 with servicing (60s timeout)
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... 
** Unable to use mmc 0:1 for loading the env **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net:   eth2: ethernet@4a100000, eth3: usb_ether
Press SPACE to abort autoboot in 0 seconds
board_name=[A335BNLT] ...
board_rev=[0A5C] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
Couldn't find partition 0:2 0x82000000
Can't set block device
Couldn't find partition 0:2 0x82000000
Can't set block device
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
67151 bytes read in 7 ms (9.1 MiB/s)
Scanning disk mmc@48060000.blk...
Scanning disk mmc@481d8000.blk...
Found 4 disks
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
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/uEnv.txt ...
** Invalid partition 3 **
Couldn't find partition mmc 0:3
** Invalid partition 4 **
Couldn't find partition mmc 0:4
** Invalid partition 5 **
Couldn't find partition mmc 0:5
** Invalid partition 6 **
Couldn't find partition mmc 0:6
** Invalid partition 7 **
Couldn't find partition mmc 0:7
switch to partitions #0, OK
mmc1(part 0) is current device
** No partition table - mmc 1 **
Couldn't find partition mmc 1: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
mmc1(part 0) is current device
gpio: pin 54 (gpio 54) value is 1
** No partition table - mmc 1 **
Couldn't find partition mmc 1:1
Checking for: /uEnv.txt ...
** No partition table - mmc 1 **
Couldn't find partition mmc 1:1
Checking for: /boot/uEnv.txt ...
** No partition table - mmc 1 **
Couldn't find partition mmc 1:1
** No partition table - mmc 1 **
Couldn't find partition mmc 1:2
** No partition table - mmc 1 **
Couldn't find partition mmc 1:3
** No partition table - mmc 1 **
Couldn't find partition mmc 1:4
** No partition table - mmc 1 **
Couldn't find partition mmc 1:5
** No partition table - mmc 1 **
Couldn't find partition mmc 1:6
** No partition table - mmc 1 **
Couldn't find partition mmc 1:7
starting USB...
Bus usb@47401800: Port not available.
USB is stopped. Please issue 'usb start' first.
starting USB...
Bus usb@47401800: Port not available.
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
BOOTP broadcast 11

Towards the end, uboot states to issue a usb start command:


=> usb start
starting USB...
Bus usb@47401800: Port not available.

So,

It boots but it seems my init program is not listed in the fs. So, off to square one.

Seth

Hello @RobertCNelson ,

So…

  1. It seems I was mistaken by some elongated text in the book I was reviewing.
  2. Buildroot is needed outside of building BusyBox.
  3. I cannot just use BusyBox to handle booting into a Linux machine, i.e. supposedly.

So…

  1. I will call this closed now.
  2. And…not only is this closed, I need to get back to it soon to build the machine Distro.

Seth

P.S. Thank you for your support, sir. Bon voyage!