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/AM4378: Boot zImage not found

Part Number: AM4378
Other Parts Discussed in Thread: TPS65218

Tool/software: Linux

Dear sir,

 Currently I have a problem to make a right system file . After booting up from the MMC mode, I got the message of  ** File not found /boot/zImage **. 

So I made  a test to decompress the original file, which can correctly boot up from the chip , by typing the command "tar zxvf rootfs.tar.gz".

In the mean time, the file was compressed back to rootfs.tar.gz whithout any change to its original contents by typing the command "tar zcvf rootfs.tar.gz rootfs"

It is found that the size of the new rootfs.tar.gz is a little bit different from its original rootfs.tar.gz (whcih is supposed to be the same, but not).

The original rootfs.tar.gz was then replaced by the new rootfs.tar.gz and made a complete update by typing "./updatesys.sh".

Then the problem of ** File not found /boot/zImage ** was found after booting up  from the MMC.

So the problem can be duplicated by decompressing and compressing the system file. Do you have any idea what the problem it is ?

 

  • Please post what Linux version you use, and the complete boot log.
  • Hi,
    linex version : 4.1.18
    boot log:

    U-Boot SPL 2016.05 (Jun 29 2018 - 19:56:21)
    Trying to boot from MMC2
    SPL: Please implement spl_start_uboot() for your board
    SPL: Direct Linux boot not active!
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img


    U-Boot 2016.05 (Jun 29 2018 - 19:56:21 +0800)

    I2C: ready
    DRAM: 512 MiB
    PMIC: TPS65218
    WARNING: RTC not backed by battery!
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Card did not respond to voltage select!
    ** Bad device mmc 0 **
    Using default environment

    Net: <ethaddr> not set. Validating first E-fuse MAC
    Could not get PHY for cpsw: addr 0
    Could not get PHY for cpsw: addr 6
    cpsw, usb_ether
    Hit any key to stop autoboot: 0
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    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
    switch to partitions #0, OK
    mmc1(part 0) is current device
    SD/MMC found on device 1
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uEnv.txt
    712 bytes read in 6 ms (115.2 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc ...
    switch to partitions #0, OK
    mmc1(part 0) is current device
    SD/MMC found on device 1
    switch to partitions #0, OK
    mmc1(part 0) is current device
    SD/MMC found on device 1
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uEnv.txt
    712 bytes read in 6 ms (115.2 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc ...
    ** File not found /boot/zImage **
    starting USB...
    USB0: Register 2000440 NbrPorts 2
    Starting the controller
    USB XHCI 1.00
    scanning bus 0 for devices... 2 USB Device(s) found
    scanning usb for storage devices... 0 Storage Device(s) found

    USB device 0: unknown device
  • Hello sr,

    When you use "tar zcvf rootfs.tar.gz rootfs" command, you are putting extra rootfs directory within the archive, so that later the /boot/zImage is not found. To drop the extra rootfs directory please enter the directory first and create the archive from there.

    cd rootfs
    sudo tar zcvf ../rootfs.tar.gz *

    Best regards,
    Kemal