u-boot fix for phantom UART character hang at boot

347 views
Skip to first unread message

kirkmit...@gmail.com

unread,
May 4, 2016, 7:16:32 PM5/4/16
to BeagleBoard
Does anyone know if this version:


Linux beaglebone 3.8.13-bone70 #1 SMP Fri Jan 23 02:15:42 UTC 2015 armv7l GNU/Linux


already has the "u-boot fix for phantom UART character hang at boot"
My application cycles the power and re-boots often and occasionally it hangs up at boot with just the blue power LED on.

Thanks,
Kirk



Robert Nelson

unread,
May 4, 2016, 7:20:07 PM5/4/16
to Beagle Board, kirkmit...@gmail.com
That's the kernel... Completely independent of the bootloader...

SO...  try again, but this time use your usb debug and find the bootloader log..

Regards,

--
Robert Nelson
https://rcn-ee.com/

kirkmit...@gmail.com

unread,
May 5, 2016, 1:37:19 PM5/5/16
to BeagleBoard, kirkmit...@gmail.com
So it looks like I have get a serial cable??

Or is the  bootloader log written to a file somewhere.  I can't find it.
(it does boot up most of the time)

Thanks,
Kirk


Robert Nelson

unread,
May 5, 2016, 1:43:21 PM5/5/16
to Beagle Board, Kirk Mitchell
it get's written on bootup to the serial port..

Regards,

kirkmit...@gmail.com

unread,
May 10, 2016, 5:31:45 PM5/10/16
to BeagleBoard, kirkmit...@gmail.com

I’m back and up and running with my new serial debug cable.
Maybe you can help me understand this.

I have 2 BBB’s one Original BBB and an Arrow industrial temperature BBB.  Both were flashed from the same microSD card image.

Original BBB has new u-boot on it and will boot successfully.  (see below Boot Log Original new u-boot.txt)

Then I connected to the new Arrow BBB before loading the new u-boot.  It boots OK.  (see Boot Log Arrow BBB old u-boot.txt)

Then I loaded the same new u-boot on the Arrow BBB and now it will not complete the boot.  (see Boot Log Arrow BBB new u-boot.txt)
The | character at the end of this boot log file was a rotating line pattern that continued forever like it is waiting for something.  All the BBB blue LED’s are on.


I really appreciate you taking the time to look at this,

Kirk

**********************************************************
********** Boot Log Original new u-boot.txt **************
**********************************************************
U-Boot SPL 2015.10-00002-gec579ac-dirty (May 05 2016 - 11:39:07)
bad magic


U-Boot 2015.10-00002-gec579ac-dirty (May 05 2016 - 11:39:07 -0500)

       Watchdog enabled
I2C:   ready
DRAM:  512 MiB
Reset Source: Power-on reset has occurred.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

Net:   <ethaddr> not set. Validating first E-fuse MAC
cpsw
gpio: pin 53 (gpio 53) value is 1
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
switch to partitions #0, OK
mmc1(part 0) 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
1013 bytes read in 14 ms (70.3 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-3.8.13-bone70 ...
5617184 bytes read in 326 ms (16.4 MiB/s)
loading /boot/dtbs/3.8.13-bone70/am335x-boneblack.dtb ...
26098 bytes read in 22 ms (1.1 MiB/s)
loading /boot/initrd.img-3.8.13-bone70 ...
2865938 bytes read in 174 ms (15.7 MiB/s)
debug: [console=ttyO0,115200n8 text capemgr.disable_partno=BB-BONELT-HDMI,BB-BON                                        ELT-HDMIN root=UUID=9579490e-1d99-4afc-89f6-496ad41aef7a ro rootfstype=ext4 root                                        wait quiet init=/lib/systemd/systemd] ...
debug: [bootz 0x82000000 0x88080000:2bbb12 0x88000000] ...
Kernel image @ 0x82000000 [ 0x000000 - 0x55b620 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Ramdisk to 8fd44000, end 8ffffb12 ... OK
   Loading Device Tree to 8fd3a000, end 8fd435f1 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.372834] omap2_mbox_probe: platform not supported
[    0.527766] tps65217-bl tps65217-bl: no platform data provided
[    0.591300] bone-capemgr bone_capemgr.9: slot #0: No cape found
[    0.628407] bone-capemgr bone_capemgr.9: slot #1: No cape found
[    0.665515] bone-capemgr bone_capemgr.9: slot #2: No cape found
[    0.702625] bone-capemgr bone_capemgr.9: slot #3: No cape found
[    0.721297] omap_hsmmc mmc.5: of_parse_phandle_with_args of 'reset' failed
[    0.782963] pinctrl-single 44e10800.pinmux: pin 44e10854 already requested by                                         44e10800.pinmux; cannot claim for gpio-leds.8
[    0.794660] pinctrl-single 44e10800.pinmux: pin-21 (gpio-leds.8) status -22
[    0.801933] pinctrl-single 44e10800.pinmux: could not request pin 21 on devic                                        e pinctrl-single
Loading, please wait...
systemd-fsck[205]: rootfs: clean, 112865/227584 files, 658849/909056 blocks

Debian GNU/Linux 7 beaglebone ttyO0

BeagleBoard.org Debian Image 2015-03-01


default username:password is [debian:temppwd]

The IP Address for usb0 is: 192.168.7.2
beaglebone login:



***********************************************************
********** Boot Log Arrow BBB old u-boot.txt *************
***********************************************************
U-Boot SPL 2015.01-00001-gb2412df (Jan 29 2015 - 15:01:06)


U-Boot 2015.01-00001-gb2412df (Jan 29 2015 - 15:01:06), Build: jenkins-github_Bootloader-Builder-105

       Watchdog enabled
I2C:   ready
DRAM:  512 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

Net:   <ethaddr> not set. Validating first E-fuse MAC
cpsw
Hit any key to stop autoboot:  0
gpio: pin 53 (gpio 53) value is 1
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
switch to partitions #0, OK
mmc1(part 0) 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
1336 bytes read in 24 ms (53.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-3.8.13-bone70 ...
5617184 bytes read in 336 ms (15.9 MiB/s)
loading /boot/dtbs/3.8.13-bone70/am335x-boneblack.dtb ...
26098 bytes read in 30 ms (848.6 KiB/s)
loading /boot/initrd.img-3.8.13-bone70 ...
2852057 bytes read in 183 ms (14.9 MiB/s)
debug: [console=ttyO0,115200n8 text capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN root=UUID=2c8df339-3bf8-4de5-8a31-d8c69c096d6d ro rootfstype=ext4 rootwait fixrtc quiet init=/lib/systemd/systemd] ...
debug: [bootz 0x82000000 0x88080000:2b84d9 0x88000000] ...
Kernel image @ 0x82000000 [ 0x000000 - 0x55b620 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Ramdisk to 8fd47000, end 8ffff4d9 ... OK
   Loading Device Tree to 8fd3d000, end 8fd465f1 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.371739] omap2_mbox_probe: platform not supported
[    0.526897] tps65217-bl tps65217-bl: no platform data provided
[    0.589296] bone-capemgr bone_capemgr.9: slot #0: No cape found
[    0.626401] bone-capemgr bone_capemgr.9: slot #1: No cape found
[    0.663509] bone-capemgr bone_capemgr.9: slot #2: No cape found
[    0.700619] bone-capemgr bone_capemgr.9: slot #3: No cape found
[    0.719289] omap_hsmmc mmc.5: of_parse_phandle_with_args of 'reset' failed
[    0.780964] pinctrl-single 44e10800.pinmux: pin 44e10854 already requested by 44e10800.pinmux; cannot claim for gpio-leds.8
[    0.792645] pinctrl-single 44e10800.pinmux: pin-21 (gpio-leds.8) status -22
[    0.799927] pinctrl-single 44e10800.pinmux: could not request pin 21 on device pinctrl-single
Loading, please wait...
systemd-fsck[206]: rootfs: clean, 112847/224896 files, 711253/898816 blocks

Debian GNU/Linux 7 beaglebone ttyO0

BeagleBoard.org Debian Image 2015-03-01


default username:password is [debian:temppwd]

The IP Address for usb0 is: 192.168.7.2
beaglebone login:



***********************************************************
********** Boot Log Arrow BBB new u-boot.txt **************
***********************************************************

U-Boot SPL 2015.10-00002-gec579ac-dirty (May 05 2016 - 11:39:07)
bad magic


U-Boot 2015.10-00002-gec579ac-dirty (May 05 2016 - 11:39:07 -0500)

       Watchdog enabled
I2C:   ready
DRAM:  512 MiB
Reset Source: Power-on reset has occurred.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

Net:   <ethaddr> not set. Validating first E-fuse MAC
Phy 0 not found
cpsw
gpio: pin 53 (gpio 53) value is 1
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
switch to partitions #0, OK
mmc1(part 0) 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
1336 bytes read in 26 ms (49.8 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-3.8.13-bone70 ...
5617184 bytes read in 338 ms (15.8 MiB/s)

unable to find [dtb=am335x-abbbi.dtb] did you name it correctly? ...

FAILSAFE: U-Boot UMS (USB Mass Storage) enabled, media now available over the usb slave port ...
UMS: disk start sector: 0x0, count: 0x70c000

Robert Nelson

unread,
May 10, 2016, 5:42:38 PM5/10/16
to Beagle Board, Kirk Mitchell
On Tue, May 10, 2016 at 4:31 PM, <kirkmit...@gmail.com> wrote:

I’m back and up and running with my new serial debug cable.
Maybe you can help me understand this.

I have 2 BBB’s one Original BBB and an Arrow industrial temperature BBB.  Both were flashed from the same microSD card image.

Original BBB has new u-boot on it and will boot successfully.  (see below Boot Log Original new u-boot.txt)

Then I connected to the new Arrow BBB before loading the new u-boot.  It boots OK.  (see Boot Log Arrow BBB old u-boot.txt)

Then I loaded the same new u-boot on the Arrow BBB and now it will not complete the boot.  (see Boot Log Arrow BBB new u-boot.txt)
The | character at the end of this boot log file was a rotating line pattern that continued forever like it is waiting for something.  All the BBB blue LED’s are on.

***********************************************************
********** Boot Log Arrow BBB new u-boot.txt **************
***********************************************************

Running uname_boot ...
loading /boot/vmlinuz-3.8.13-bone70 ...
5617184 bytes read in 338 ms (15.8 MiB/s)

unable to find [dtb=am335x-abbbi.dtb] did you name it correctly? ...

FAILSAFE: U-Boot UMS (USB Mass Storage) enabled, media now available over the usb slave port ...
UMS: disk start sector: 0x0, count: 0x70c000

Arrow BBB's support is only in v4.1.x+, since it uses an ADI framer vs the NXP one on the BBB, "I" didn't care enough to backport the ADI driver to 3.8.13...  Thus you get ^ message..

You can force: 

dtb=am335x-boneblack.dtb

in /boot/uEnv.txt just make sure to disable hdmi... capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN

Regards,

Kirk

unread,
May 10, 2016, 7:50:22 PM5/10/16
to BeagleBoard, kirkmit...@gmail.com
That solved the problem!   Thanks very much for your help with this.
I'm going to cycle on/off all night to make sure there are no more hang's at boot up due to phantom serial port characters.

Have  you (or anyone else) seen any documentation on differences in the Arrow board?

Kirk
Reply all
Reply to author
Forward
0 new messages