This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3358: Custom board boot problem

Part Number: AM3358

Tool/software: Linux

Hello!!

I have a following Kernel problem. Anybody who has similar case, let me know what is problem.

1. Design

we modify beagle bone black wireless model. we eliminate HDMI related IC and put in FPGA . 

2. EEPROM

we wrote EEPROM ID value as beagle bone black wireless modem. It really hard to find write way.

If some body want to write eeprom based on beagle bone board try like this

  1) write lasted image.

  2) as start power up, press space bar to enter uboot command mod

  3) write like this

       i2c md 0x50 0x0.2

    then it show EEPROM memory from 0x0 adress

    if U want write value use like this

      i2c mw 0x50 0xP.2 0xAA 1

    P : position of byte

    AA : value to write

   Don't forgot ".2" at each address value.

3. Image

   we use latest  image from BBB site. Debian

4. DTB modification

when we use conventioanl DTB. there is TDA99x related Error at boot. So, we change am335x-boneblack-wireless.dts from dtb-rebuilder/src.

we block tda99x include line.

5. Booting Script

U-Boot SPL 2017.03-00002-gd12b1519b4 (Mar 14 2017 - 10:28:26)
Trying to boot from MMC1


U-Boot 2017.03-00002-gd12b1519b4 (Mar 14 2017 - 10:28:26 -0500), Build: jenkins-github_Bootloader-Builder-532

CPU : AM335X-GP rev 2.1
I2C: ready
DRAM: 512 MiB
Reset Source: Global external warm reset has occurred.
Reset Source: Power-on reset has occurred.
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
Model: BeagleBoard.org BeagleBone Black Wireless:
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
Press SPACE to abort autoboot in 2 seconds
board_name=[BBBW] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Bad device 0:2 0x82000000 **
** Bad device 0:2 0x82000000 **
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
1971 bytes read in 55 ms (34.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.54-ti-r93 ...
8652712 bytes read in 594 ms (13.9 MiB/s)
loading /boot/dtbs/4.4.54-ti-r93/am335x-boneblack-wireless.dtb ...
57486 bytes read in 190 ms (294.9 KiB/s)
uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to enable...
loading /boot/initrd.img-4.4.54-ti-r93 ...
5307157 bytes read in 379 ms (13.4 MiB/s)
debug: [console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet cape_universal=enable] ...
debug: [bootz 0x82000000 0x88080000:50fb15 0x88000000] ...
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Ramdisk to 8faf0000, end 8ffffb15 ... OK
Loading Device Tree to 8fade000, end 8faef08d ... OK

Starting kernel ...

[ 0.001043] clocksource_probe: no matching clocksources found
[ 2.074622] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 2.311555] omap_voltage_late_init: Voltage driver support not added
[ 2.319495] PM: Cannot get wkup_m3_ipc handle
Loading, please wait...
[ 4.845576] remoteproc1: failed to load am335x-pru0-fw
[ 4.871582] remoteproc1: request_firmware failed: -2
[ 4.876781] pru-rproc 4a334000.pru0: rproc_boot failed
[ 4.994252] remoteproc1: failed to load am335x-pru1-fw
[ 5.006752] remoteproc1: request_firmware failed: -2
[ 5.011914] pru-rproc 4a338000.pru1: rproc_boot failed
rootfs: recovering journal
rootfs: clean, 83478/217728 files, 406561/869376 blocks

Debian GNU/Linux 8 beaglebone ttyS0

BeagleBoard.org Debian Image 2017-03-19

Support/FAQ: elinux.org/Beagleboard:BeagleBoneBlack_Debian

default username:password is [debian:temppwd]

beaglebone login: [ OK ] Reached target Unmount All Filesystems.
[ OK ] Stopped target System Time Synchronized.
[ OK ] Stopped target Timers.
[ OK ] Stopped Daily Cleanup of Temporary Directories.
Stopping Hostname Service...
Stopping OpenBSD Secure Shell server...
Stopping LSB: Advanced IEEE 802.11 management daemon...
Stopping Deferred execution scheduler...
Stopping Login Service...
Stopping Regular background program processing daemon...
Stopping System Logging Service...
Stopping Avahi mDNS/DNS-SD Stack...
Stopping LSB: Apache2 web server...
Stopping Bonescript autorun...
Stopping LSB: Start busybox udhcpd at boot time...
Stopping LSB: set CPUFreq kernel parameters...
Starting Store Sound Card State...
Stopping Entropy daemon using the HAVEGE algorithm...
[ OK ] Stopped Avahi mDNS/DNS-SD Stack.
[ OK ] Stopped Entropy daemon using the HAVEGE algorithm.
[ OK ] Stopped Bonescript autorun.
[ OK ] Stopped BB WL18xx wlan0 Service.
[ OK ] Stopped Login Service.
[ OK ] Stopped Deferred execution scheduler.
[ OK ] Stopped System Logging Service.
[ OK ] Stopped Regular background program processing daemon.
[ OK ] Stopped Hostname Service.
[ OK ] Stopped OpenBSD Secure Shell server.
[ OK ] Stopped BB WL18xx Bluetooth Service.
[ OK ] Stopped Load/Save RF Kill Switch Status.
[ OK ] Stopped LSB: Advanced IEEE 802.11 management daemon.
[FAILED] Failed to start Store Sound Card State.
See 'systemctl status alsa-store.service' for details.
[ OK ] Stopped LSB: Start busybox udhcpd at boot time.
Stopping Serial Getty on ttyS0...tatus /dev/rfkill Watch.
Stopping Getty on tty1...
Stopping Serial Getty on ttyGS0...
[ OK ] Stopped Getty on tty1.
[ OK ] Stopped Serial Getty on ttyS0.
[ OK ] Stopped Serial Getty on ttyGS0.
[ OK ] Stopped LSB: set CPUFreq kernel parameters.
Stopping LSB: Load kernel modules needed to enable cpufreq scaling...
[ OK ] Removed slice system-serial\x2dgetty.slice.
[ OK ] Stopped /etc/rc.local Compatibility.
Stopping Permit User Sessions...
[ OK ] Removed slice system-getty.slice.
[ OK ] Stopped Permit User Sessions.
[ OK ] Stopped LSB: Load kernel modules needed to enable cpufreq scaling.
[ OK ] Stopped LSB: Apache2 web server.
[ OK ] Stopped target Network is Online.
[ OK ] Stopped target Network.
Stopping Connection service...
Stopping WPA supplicant...
Stopping Raise network interfaces...
[ OK ] Stopped target Remote File Systems.
[ OK ] Stopped target Remote File Systems (Pre).
[ OK ] Stopped WPA supplicant.
[ OK ] Stopped Connection service.
Stopping D-Bus System Message Bus...
[ OK ] Stopped D-Bus System Message Bus.
[ OK ] Stopped target Basic System.
[ OK ] Stopped target Paths.
[ OK ] Stopped Forward Password Requests to Wall Directory Watch.
[ OK ] Stopped Dispatch Password Requests to Console Directory Watch.
[ OK ] Stopped target Sockets.
[ OK ] Closed node-red.socket.
[ OK ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Closed Syslog Socket.
[ OK ] Closed cloud9.socket.
[ OK ] Closed bonescript.socket.
[ OK ] Stopped target Slices.
[ OK ] Removed slice User and Session Slice.
[ OK ] Closed D-Bus System Message Bus Socket.
[ OK ] Stopped target System Initialization.
Stopping Network Time Synchronization...
[ OK ] Stopped target Encrypted Volumes.
[ OK ] Stopped target Swap.
Stopping Update UTMP about System Boot/Shutdown...
Stopping Load/Save Random Seed...
[ OK ] Stopped Network Time Synchronization.
[ OK ] Stopped Load/Save Random Seed.
[ OK ] Stopped Update UTMP about System Boot/Shutdown.
[ OK ] Stopped Create Volatile Files and Directories.
[ OK ] Stopped Raise network interfaces.
[ OK ] Stopped Apply Kernel Variables.
[ OK ] Stopped Load Kernel Modules.
[ OK ] Stopped target Local File Systems.
[ OK ] Stopped target Local File Systems (Pre).
[ OK ] Stopped Create Static Device Nodes in /dev.
[ OK ] Stopped Remount Root and Kernel File Systems.
[ OK ] Reached target Shutdown.
[ OK ] Reached target Final Step.
Starting Power-Off...
[ 46.214656] configfs-gadget gadget: unbind function 'rndis'/dc3763c0
[ 46.221153] configfs-gadget gadget: unbind function 'cdc_ethernet'/dab19f00
[ 46.228181] configfs-gadget gadget: unbind function 'acm'/da892540
[ 46.234412] configfs-gadget gadget: unbind function 'Mass Storage Function'/da902c80
[ 46.247049] reboot: Power down
[ 48.742345] rtc_power_off failed, bailing out.
[ 48.758033] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
[ 48.758033]
[ 48.767281] CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 4.4.54-ti-r93 #1
[ 48.774379] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 48.780590] [<c001ad48>] (unwind_backtrace) from [<c0015a50>] (show_stack+0x20/0x24)
[ 48.788426] [<c0015a50>] (show_stack) from [<c05bb158>] (dump_stack+0x9c/0xb0)
[ 48.795738] [<c05bb158>] (dump_stack) from [<c015da38>] (panic+0xfc/0x290)
[ 48.802691] [<c015da38>] (panic) from [<c00473f8>] (do_exit+0xa68/0xa8c)
[ 48.809463] [<c00473f8>] (do_exit) from [<c006809c>] (SyS_reboot+0x1c8/0x238)
[ 48.816678] [<c006809c>] (SyS_reboot) from [<c0010e60>] (ret_fast_syscall+0x0/0x44)
[ 48.824417] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
[ 48.824417]

I have no idea how to correct. Anybody who have any idea, please help me!!