Kernel panic - not syncing: No init found

Hi,

  1. I have downloaded openembedded-(core) source code form the below link

I have build the source code for the apalis-t30. I have used “bitbake -k angstrom-lxde-image” , “bitbake samba” & “bitbake angstrom-lxde-image -c populate_sdk” command for compling the source code.

After the compilation i can see the binary “Apalis-T30_LXDE-Image_2.8b2-20180613.tar.bz2” inside “oe-core/deploy/images/apalis-t30” directory. But in this directory i can see only zImage has been created. But before 4 month once i have downloaded the same sourcecode and after building i was able to see the uImage

logs:
deepaksingh@dexsys171:/oe-core/deploy/images/apalis-t30$ ls -l

total 393052

-rw-r--r-- 1 deepaksingh deepaksingh 197915299 Jun 13 12:47 Apalis-T30_LXDE-Image_2.8b2-20180613.tar.bz2
-rw-r--r-- 1 deepaksingh deepaksingh     29724 Jun 13 12:46 Apalis-T30_LXDE-Image.rootfs.manifest
-rw-r--r-- 1 deepaksingh deepaksingh 191892157 Jun 13 12:46 Apalis-T30_LXDE-Image.rootfs.tar.bz2
-rw-r--r-- 1 deepaksingh deepaksingh    148330 Jun 13 12:46 Apalis-T30_LXDE-Image.testdata.json
lrwxrwxrwx 1 deepaksingh deepaksingh        37 Jun 13 12:46 LXDE-Image-apalis-t30.manifest -> Apalis-T30_LXDE-Image.rootfs.manifest
lrwxrwxrwx 1 deepaksingh deepaksingh        36 Jun 13 12:48 LXDE-Image-apalis-t30.tar.bz2 -> Apalis-T30_LXDE-Image.rootfs.tar.bz2
lrwxrwxrwx 1 deepaksingh deepaksingh        35 Jun 13 12:46 LXDE-Image-apalis-t30.testdata.json -> Apalis-T30_LXDE-Image.testdata.json
-rw-rw-r-- 2 deepaksingh deepaksingh   7642167 Jun 12 01:54 modules--3.1.10+gitr0+b63ee2039e-2.8.2-apalis-t30-20180611121400.tgz
lrwxrwxrwx 2 deepaksingh deepaksingh        68 Jun 12 01:54 modules-apalis-t30.tgz -> modules--3.1.10+gitr0+b63ee2039e-2.8.2-apalis-t30-20180611121400.tgz
-rw-r--r-- 1 deepaksingh deepaksingh    553218 Jun 12 01:50 u-boot-dtb-tegra-apalis-t30-2016.11+gitAUTOINC+087e95a2dc-2.8.2.bin
lrwxrwxrwx 1 deepaksingh deepaksingh        67 Jun 12 01:50 u-boot-dtb-tegra-apalis-t30.bin -> u-boot-dtb-tegra-apalis-t30-2016.11+gitAUTOINC+087e95a2dc-2.8.2.bin
lrwxrwxrwx 1 deepaksingh deepaksingh        67 Jun 12 01:50 u-boot-dtb-tegra.bin -> u-boot-dtb-tegra-apalis-t30-2016.11+gitAUTOINC+087e95a2dc-2.8.2.bin
-rw-r--r-- 1 deepaksingh deepaksingh      5134 Jun 12 01:50 uEnv-apalis-t30-2016.11+gitAUTOINC+087e95a2dc-2.8.2.txt
lrwxrwxrwx 1 deepaksingh deepaksingh        55 Jun 12 01:50 uEnv.txt -> uEnv-apalis-t30-2016.11+gitAUTOINC+087e95a2dc-2.8.2.txt
lrwxrwxrwx 2 deepaksingh deepaksingh        67 Jun 12 01:54 zImage -> zImage--3.1.10+gitr0+b63ee2039e-2.8.2-apalis-t30-20180611121400.bin
-rw-r--r-- 2 deepaksingh deepaksingh   4248088 Jun 12 01:54 zImage--3.1.10+gitr0+b63ee2039e-2.8.2-apalis-t30-20180611121400.bin
lrwxrwxrwx 2 deepaksingh deepaksingh        67 Jun 12 01:54 zImage-apalis-t30.bin -> zImage--3.1.10+gitr0+b63ee2039e-2.8.2-apalis-t30-20180611121400.bin
deepaksingh@dexsys171:/oe-core/deploy/images/apalis-t30$ 
  1. After building the i have followed steps from the below link for flashing images to apalis-T30

For flashing fist i have extracted the image “Apalis-T30_LXDE-Image_2.8b2-20180613.tar.bz2”. After extracting the image i have used below command to make the USB as a bootable.

./update.sh -o /media/deepaksingh/3351-0F5F

logs:

root@dexsys171:/media/deepaksingh/3351-0F5F# ls -l
total 32

drwx------ 2 deepaksingh deepaksingh 8192 Jun 14 18:17 apalis_t30
-rw-r--r-- 1 deepaksingh deepaksingh  710 Jun 14 18:16 flash_blk.img
-rw-r--r-- 1 deepaksingh deepaksingh  444 Jun 14 18:16 flash_eth.img
-rw-r--r-- 1 deepaksingh deepaksingh  307 Jun 14 18:16 flash_mmc.img
root@dexsys171:/media/deepaksingh/3351-0F5F# 
root@dexsys171:/media/deepaksingh/3351-0F5F/apalis_t30# ls -l
total 859784

-rw-r--r-- 1 deepaksingh deepaksingh   569856 Jun 14 18:16 apalis_t30.img
-rw-r--r-- 1 deepaksingh deepaksingh 16777216 Jun 14 18:16 boot.vfat
-rw-r--r-- 1 deepaksingh deepaksingh     5080 Jun 14 18:16 flash_blk.img
-rw-r--r-- 1 deepaksingh deepaksingh     4860 Jun 14 18:16 flash_eth.img
-rw-r--r-- 1 deepaksingh deepaksingh      512 Jun 14 18:16 mbr.bin
-rw-r--r-- 1 deepaksingh deepaksingh 67108864 Jun 14 18:16 root.ext3-100
-rw-r--r-- 1 deepaksingh deepaksingh 67108864 Jun 14 18:16 root.ext3-101
-rw-r--r-- 1 deepaksingh deepaksingh 67108864 Jun 14 18:16 root.ext3-102
-rw-r--r-- 1 deepaksingh deepaksingh 67108864 Jun 14 18:16 root.ext3-103
-rw-r--r-- 1 deepaksingh deepaksingh 67108864 Jun 14 18:16 root.ext3-104
-rw-r--r-- 1 deepaksingh deepaksingh 67108864 Jun 14 18:16 root.ext3-105
-rw-r--r-- 1 deepaksingh deepaksingh 67108864 Jun 14 18:16 root.ext3-106
-rw-r--r-- 1 deepaksingh deepaksingh 67108864 Jun 14 18:17 root.ext3-107
-rw-r--r-- 1 deepaksingh deepaksingh 67108864 Jun 14 18:17 root.ext3-108
-rw-r--r-- 1 deepaksingh deepaksingh 67108864 Jun 14 18:17 root.ext3-109
-rw-r--r-- 1 deepaksingh deepaksingh 67108864 Jun 14 18:17 root.ext3-110
-rw-r--r-- 1 deepaksingh deepaksingh 67108864 Jun 14 18:17 root.ext3-111
-rw-r--r-- 1 deepaksingh deepaksingh 53477376 Jun 14 18:17 root.ext3-112
-rw-r--r-- 1 deepaksingh deepaksingh      199 Jun 14 18:16 versions.txt
-rw-r--r-- 1 deepaksingh deepaksingh  4248088 Jun 14 18:16 zImage
root@dexsys171:/media/deepaksingh/3351-0F5F/apalis_t30# 

After making USB as a bootable once i am trying to flash the images to the apalis-T30, getting the error messages(oe-core_flash_error_logs) and system is not booting properly.

Below mentioned command i have used for the flashing

Apalis T30 # run setupdate
Apalis T30 # run update

So can any one please help me to resolve this issue ASAP?

Please find the attached oe-core_flash_error_logslink text

Hi Marcel,
I tried steps provided in the above link, but still problem is not solved. Getting error messages

  1. ** Unable to read file apalis_t30/tegra30-apalis-eval.dtb **

  2. EHCI timed out on TD - token=0x80008d80

    EHCI timed out on TD - token=0x1f8c80

  3. No filesystem could mount root, tried: ext3

[ 7.694161] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)

Please find the attached log(oe-core_flash_error_afterenvsave_logs).link text

  1. Unable to read file apalis_t30/tegra30-apalis-eval.dtb

This message can be ignored as the downstream Linux kernel 3.1.10 does not make use of a device tree. However, our bootloader and legacy update procedure are prepared to optionally run a mainline based Linux kernel as well.

  1. EHCI timed out on TD - token=0x80008d80

That you are getting this during update really seems to be the issue. We have seen this at times with certain USB memory sticks if used with U-Boot. Could you try a different make/model USB memory stick or optionally update from a different update media like an SD card or via Ethernet TFTP?

Hi Marcel,

I have tried through Ethernet also but getting time out.

Apalis T30 # pci enum

Apalis T30 # setenv ipaddr 192.168.0.74

Apalis T30 # setenv serverip 192.168.0.96

Apalis T30 # saveenv

Saving Environment to MMC…

Writing to MMC(0)… done

Apalis T30 # ping ${serverip}

e1000: no NVM
Using e1000#0 device

host 192.168.0.96 is alive

Apalis T30 # run setupdate

Card did not respond to voltage select!

** Bad device mmc 1 **

Card did not respond to voltage select!

** Bad device mmc 2 **

starting USB…

USB0: USB EHCI 1.00

USB1: USB EHCI 1.00

USB2: USB EHCI 1.00

scanning bus 0 for devices… 1 USB Device(s) found

scanning bus 1 for devices… 1 USB Device(s) found

scanning bus 2 for devices… 1 USB Device(s) found

** Bad device usb 0 **

Using e1000#0 device

TFTP from server 192.168.0.96; our IP address is 192.168.0.74

Filename ‘flash_eth.img’.

Load address: 0x81000000

Loading: T T T T T T T T T T

Retry count exceeded; starting again

Apalis T30 #

And your TFTP server is at 192.168.0.96 with the file “flash_eth.img” present?

Did you e.g. deploy the stuff doing:

./update.sh -o /var/lib/tftpboot

Given /var/lib/tftpboot being your TFTP folder?

Hi Marcel,

i have used “./update.sh -o /srv/tftp” for the setup and i can see flash_eth.img is available at /srv/tftp.

deepaksingh@dexsys171:/srv/tftp$ ls -l

total 16

drwxr-xr-x 2 root root 4096 Jun 15 15:52 apalis_t30

-rw-r–r-- 1 root root 710 Jun 15 15:51 flash_blk.img

-rw-r–r-- 1 root root 444 Jun 15 15:51 flash_eth.img

-rw-r–r-- 1 root root 307 Jun 15 15:51 flash_mmc.img

deepaksingh@dexsys171:/srv/tftp$

Firewall or permission issue? See the following article as well.

Hi Marcel,

i have cross checked the firewall, everything seems to be fine. But still i am not able to flash the images through Ethernet.

I have tried using different USB and now able to flash the binary and didn’t got EHCI timed out issue.

I have cross-checked the firewall, everything seems to be fine. But still, I am not able to flash the images through Ethernet.

One thing you could check is first TFTP getting the flash_eth.img file locally on your TFTP server e.g.:

[user@localhost ~]$ ls flash_eth.img 
ls: cannot access 'flash_eth.img': No such file or directory
[user@localhost ~]$ tftp localhost -c get flash_eth.img
[user@localhost ~]$ ls -l flash_eth.img 
-rw-rw-r--. 1 user user 444 Jun 22 08:19 flash_eth.img

And once that is working remotely on your now running Embedded Linux system using BusyBox TFTP e.g.:

root@apalis-t30:~# ls flash_eth.img
ls: flash_eth.img: No such file or directory
root@apalis-t30:~# tftp -g -r flash_eth.img 192.168.10.1
root@apalis-t30:~# ls -l flash_eth.img
-rw-r--r--    1 root     root           444 Jun 22 06:23 flash_eth.img

I have tried using different USB and now able to flash the binary and didn’t get the EHCI timed out issue.

Very well. As mentioned before U-Boot’s USB stack is not quite as resilient to crappy USB memory sticks as fully booted Linux.