Flash oops! bb green wireless

Greetings all. Thanks for any advice and this fine group.

I flashed my bb green wireless with the latest standard image. After flashing it powers on and looks normal for about 10 seconds and shuts down.
It isn’t showing as a drive on my computer either as it used to.
I ordered a HDMI Cape so I can see what’s happening.

Does anyone have any helpful advice on what I can do while waiting for the Cape?

Thanks so much!
Michael B

Greetings all. Thanks for any advice and this fine group.

I flashed my bb green wireless with the latest standard image. After flashing it powers on and looks normal for about 10 seconds and shuts down.
It isn't showing as a drive on my computer either as it used to.
I ordered a HDMI Cape so I can see what's happening.

Cancel that HDMI cape order, it doesn't work past 4.4.x (no mainline driver)

Does anyone have any helpful advice on what I can do while waiting for the Cape?

Get a serial cable:

https://elinux.org/Beagleboard:BeagleBone_Black_Serial

Regards,

oh boy!

Thanks for the info. It already shipped. Thankfully it wasn’t expensive.
I held the boot button and booted up to see if I could boot off the card - but oops again, I haven’t disabled the flash to emcc yet as I can’t get the drive to show up.
Ahhhhh! It’s still fun. :slight_smile:

Michael B

Pardon the newbie question. :slight_smile:

Will the serial cable allow me to debug a boot up?
I don’t have the drive on the bb showing on the computer.
It only stays on for 10 seconds before shutting down.

That is correct, the serial cable will allow you to see the whole boot
process and where it's getting stuck..

Regards,

Some success in that I now have a serial cable connecting and can watch the flashing and booting.
I am still never getting the drive to show up as an external disk where I can change the settings to not do a flash when a card is inserted.
I am getting the error below. I googled a bit and it was suggested to make sure you are on the latest image.
I believe I have done that and re-flashed. Here is the error after removing the card and booting:
Thanks to all for the help.
Michael B

Error: [/dev/mmcblk1] does not exist
writing to [/dev/mmcblk1] failed…
[ 10.377724] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200
[ 10.377724]
[ 10.386920] CPU: 0 PID: 1 Comm: init-eMMC-flash Not tainted 4.4.9-ti-r25 #1
[ 10.393908] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 10.400066] [] (unwind_backtrace) from [] (show_stack+0x11/0x14)
[ 10.407858] [] (show_stack) from [] (dump_stack+0x73/0x80)
[ 10.415121] [] (dump_stack) from [] (panic+0xbd/0x1e8)
[ 10.422033] [] (panic) from [] (do_exit+0x7d5/0x7f4)
[ 10.428765] [] (do_exit) from [] (do_group_exit+0x2d/0x8c)
[ 10.436019] [] (do_group_exit) from [] (SyS_exit_group+0x13/0x14)
[ 10.443893] [] (SyS_exit_group) from [] (ret_fast_syscall+0x1/0x52)
[ 10.451942] —[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200
[ 10.451942]
[ 20.141509] random: nonblocking pool is initialized

Some success in that I now have a serial cable connecting and can watch the flashing and booting.
I am still never getting the drive to show up as an external disk where I can change the settings to not do a flash when a card is inserted.

We don't do that... You need to stick the microSD card into a microSD
adapter and plug into another device..

I am getting the error below. I googled a bit and it was suggested to make sure you are on the latest image.
I believe I have done that and re-flashed. Here is the error after removing the card and booting:
Thanks to all for the help.
Michael B

Error: [/dev/mmcblk1] does not exist
writing to [/dev/mmcblk1] failed...
[ 10.377724] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200
[ 10.377724]
[ 10.386920] CPU: 0 PID: 1 Comm: init-eMMC-flash Not tainted 4.4.9-ti-r25 #1
[ 10.393908] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 10.400066] [<c0015b61>] (unwind_backtrace) from [<c00123f5>] (show_stack+0x11/0x14)
[ 10.407858] [<c00123f5>] (show_stack) from [<c03c9023>] (dump_stack+0x73/0x80)
[ 10.415121] [<c03c9023>] (dump_stack) from [<c00f240d>] (panic+0xbd/0x1e8)
[ 10.422033] [<c00f240d>] (panic) from [<c00342dd>] (do_exit+0x7d5/0x7f4)
[ 10.428765] [<c00342dd>] (do_exit) from [<c0034355>] (do_group_exit+0x2d/0x8c)
[ 10.436019] [<c0034355>] (do_group_exit) from [<c00343c7>] (SyS_exit_group+0x13/0x14)
[ 10.443893] [<c00343c7>] (SyS_exit_group) from [<c000ec41>] (ret_fast_syscall+0x1/0x52)
[ 10.451942] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200
[ 10.451942]
[ 20.141509] random: nonblocking pool is initialized

That looks like you flashed a "flasher" to the eMMC...

Without any microSD plugged in, can you show us the full boot log from
power on, to that issue?

Regards,

The boot scrolls past and I can’t grab it all.
Using osx in terminal.

If I put the micro sd into an adapter and plug into a computer it isn’t mountable as it’s a flash image of the bb that I am trying to get to run as opposed to a drive I can write to.

I tried to > screen to a file and the file came back empty.

sudo screen /dev/tty.usbserial-FTAP7C79 115200 > session.txt

Any advice on how to capture the boot in screen?

I flashed this version - unless I messed it up of course:

bone-debian-9.9-iot-armhf-2019-08-03-4gb.img.xz

Google mentioned a '-L' option that logs to a file..

Sorry i don't know if mac's screen supports that..

Regards,

I was able to grab a bit higher up than before.
It looks like it’s trying to flash again even though the flash card isn’t inserted.

U-Boot SPL 2016.03-00001-g148e520 (Jun 06 2016 - 11:27:44)
Trying to boot from MMC
bad magic

U-Boot 2016.03-00001-g148e520 (Jun 06 2016 - 11:27:44 -0500), Build: jenkins-github_Bootloader-Builder-395

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: not set. Validating first E-fuse MAC

Could not get PHY for cpsw: addr 0

cpsw, usb_ether

Press SPACE to abort autoboot in 2 seconds

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…

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

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

1263 bytes read in 16 ms (76.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.4.9-ti-r25 …

7833256 bytes read in 446 ms (16.7 MiB/s)

loading /boot/dtbs/4.4.9-ti-r25/am335x-bonegreen-wireless.dtb …

61860 bytes read in 47 ms (1.3 MiB/s)

loading /boot/initrd.img-4.4.9-ti-r25 …

4828115 bytes read in 281 ms (16.4 MiB/s)

debug: [console=ttyO0,115200n8 root=UUID=2b96442f-bc55-493c-8e3d-4c599d12fbad ro rootfstype=ext4 rootwait init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3-bbgw.sh] …

debug: [bootz 0x82000000 0x88080000:49abd3 0x88000000] …

Kernel image @ 0x82000000 [ 0x000000 - 0x7786a8 ]

Flattened Device Tree blob at 88000000

Booting using the fdt blob at 0x88000000

Loading Ramdisk to 8fb65000, end 8ffffbd3 … OK

Loading Device Tree to 8fb52000, end 8fb641a3 … OK

Starting kernel …

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.9-ti-r25 (root@b3-jetson-tk1-2gb) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP Thu May 5 23:08:13 UTC 2016
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: TI AM335x BeagleBone Green Wireless
[ 0.000000] cma: Reserved 24 MiB at 0x9e000000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (sgx neon )
[ 0.000000] PERCPU: Embedded 13 pages/cpu @df923000 s24320 r8192 d20736 u53248
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129408
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=UUID=2b96442f-bc55-493c-8e3d-4c599d12fbad ro rootfstype=ext4 rootwait init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3-bbgw.sh
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 474012K/522240K available (7344K kernel code, 914K rwdata, 3704K rodata, 604K init, 907K bss, 23652K reserved, 24576K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf800000 - 0xbfe00000 ( 6 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0ad2480 (11050 kB)
[ 0.000000] .init : 0xc0ad3000 - 0xc0b6a000 ( 604 kB)
[ 0.000000] .data : 0xc0b6a000 - 0xc0c4e818 ( 915 kB)
[ 0.000000] .bss : 0xc0c51000 - 0xc0d33de8 ( 908 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000012] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000031] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000042] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000228] Console: colour dummy device 80x30
[ 0.000253] WARNING: Your ‘console=ttyO0’ has been replaced by ‘ttyS0’
[ 0.000260] This ensures that you still see kernel messages. Please
[ 0.000266] update your kernel commandline.
[ 0.000284] Calibrating delay loop… 995.32 BogoMIPS (lpj=1990656)
[ 0.046922] pid_max: default: 32768 minimum: 301
[ 0.047058] Security Framework initialized
[ 0.047072] Yama: becoming mindful.
[ 0.047104] AppArmor: AppArmor disabled by boot time parameter
[ 0.047260] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.047271] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.048046] Initializing cgroup subsys io
[ 0.048074] Initializing cgroup subsys memory
[ 0.048113] Initializing cgroup subsys devices
[ 0.048130] Initializing cgroup subsys freezer
[ 0.048145] Initializing cgroup subsys net_cls
[ 0.048158] Initializing cgroup subsys perf_event
[ 0.048172] Initializing cgroup subsys net_prio
[ 0.048187] Initializing cgroup subsys pids
[ 0.048246] CPU: Testing write buffer coherency: ok
[ 0.048298] ftrace: allocating 34073 entries in 67 pages
[ 0.133351] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[ 0.133473] Setting up static identity map for 0x80008240 - 0x8000828c
[ 0.136873] Brought up 1 CPUs
[ 0.136892] SMP: Total of 1 processors activated (995.32 BogoMIPS).
[ 0.136900] CPU: All CPU(s) started in SVC mode.
[ 0.138317] devtmpfs: initialized
[ 0.157090] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.175151] omap_hwmod: debugss: _wait_target_disable failed
[ 0.228861] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.231050] xor: measuring software checksum speed
[ 0.270922] arm4regs : 1221.000 MB/sec
[ 0.310922] 8regs : 1094.000 MB/sec
[ 0.350919] 32regs : 1093.000 MB/sec
[ 0.390920] neon : 1754.000 MB/sec
[ 0.390927] xor: using function: neon (1754.000 MB/sec)
[ 0.391022] pinctrl core: initialized pinctrl subsystem
[ 0.392980] NET: Registered protocol family 16
[ 0.395630] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.396823] cpuidle: using governor ladder
[ 0.396843] cpuidle: using governor menu
[ 0.401785] OMAP GPIO hardware version 0.1
[ 0.413353] No ATAGs?
[ 0.413382] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.413931] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[ 0.413945] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[ 0.491048] raid6: int32x1 gen() 269 MB/s
[ 0.559022] raid6: int32x1 xor() 236 MB/s
[ 0.627027] raid6: int32x2 gen() 356 MB/s
[ 0.694961] raid6: int32x2 xor() 269 MB/s
[ 0.763016] raid6: int32x4 gen() 405 MB/s
[ 0.831016] raid6: int32x4 xor() 259 MB/s
[ 0.899068] raid6: int32x8 gen() 359 MB/s
[ 0.966927] raid6: int32x8 xor() 231 MB/s
[ 1.034945] raid6: neonx1 gen() 1458 MB/s
[ 1.102924] raid6: neonx1 xor() 846 MB/s
[ 1.170923] raid6: neonx2 gen() 1880 MB/s
[ 1.238940] raid6: neonx2 xor() 1168 MB/s
[ 1.306918] raid6: neonx4 gen() 1974 MB/s
[ 1.374935] raid6: neonx4 xor() 1204 MB/s
[ 1.442940] raid6: neonx8 gen() 1211 MB/s
[ 1.510919] raid6: neonx8 xor() 671 MB/s
[ 1.510926] raid6: using algorithm neonx4 gen() 1974 MB/s
[ 1.510932] raid6: … xor() 1204 MB/s, rmw enabled
[ 1.510939] raid6: using intx1 recovery algorithm
[ 1.520007] edma 49000000.edma: TI EDMA DMA engine driver
[ 1.525057] SCSI subsystem initialized
[ 1.525781] usbcore: registered new interface driver usbfs
[ 1.525848] usbcore: registered new interface driver hub
[ 1.525940] usbcore: registered new device driver usb
[ 1.526508] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 1.526552] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
[ 1.526665] media: Linux media interface: v0.10
[ 1.526729] Linux video capture interface: v2.00
[ 1.526821] pps_core: LinuxPPS API ver. 1 registered

It looks like it is trying to flash again.
So I guess I’m back to my question of how to change the auto flash setting when I can’t get access to the setting?.

Reading this article to create a uboot on a card.
Does this seem like it’s the right path?
Thanks a ton for the advice.

https://github.com/bootlin/training-materials/blob/master/lab-data/common/bootloader/beaglebone-black/README.txt

Another potential path is booting from u-boot to tftp or nfs. hmmmm…

Setting up a TFTP server and an NFS server is not rocket science.
Network booting is a trick that has proven itself very handy time and
time again.

If you are booting from a uSD card, then you can stop the auto flash by commenting out the 'cmdline’entry in the uEnv.txt file. You can do this from a PC and place it back into the BBW.

Ex:

##enable x15: eMMC Flasher:

##make sure, these tools are installed: dosfstools rsync

#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3-no-eeprom.sh

However, can’t you burn the proper image on a uSD card and then uncomment the “cmdline” entry to reflash the eMMC?

Also, is there a bootable USB drive connected to the board?
[ 2.975006] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

[ 2.981858] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[ 2.989127] usb usb1: Product: MUSB HDRC host driver

[ 2.994128] usb usb1: Manufacturer: Linux 4.4.9-ti-r25 musb-hcd

[ 3.000087] usb usb1: SerialNumber: musb-hdrc.1.auto

[ 3.005914] hub 1-0:1.0: USB hub found

[ 3.009820] hub 1-0:1.0: 1 port detected

I’m just curious where the Linux 4.4.9-ti-r25 came from and if it is the proper image for this board?

Cheer,

Jon

Great questions. Thanks so much for helping here. :slight_smile:

On Startup, hold the "boot" button.. Sadly what you've done is
enabled the "flasher" script from the eMMC rootfs, so on every bootup,
it tries to "flash" the microSD from the eMMC..

So what you need to do, is hold the "boot" button, apply power, and
let it actually boot from the microSD, then nuke the eMMC via dd, so
it won't keep tring to flash the microSD on bootup..

Regards,

You could install something like VirtualBox or VMWare Fusion on your Mac and create a Linux VM where you should be able to read the flash card.

if you are questioning the burn to uSD, then you could download and install Etcher to create the bootable uSD card.

Jon