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/DRA750: The dtb file attached to the kernel image

Part Number: DRA750
Other Parts Discussed in Thread: PMP

Tool/software: Linux

Hi,

I have a question about how to build the kernel image with the dtb file attached to the kernel image. I built the kernel image with the dtb file attached . But the built kernel image can’t boot after u-boot loading it to DDR memory..

Following is the procedure to build the kernel image with the dtb file attached.

1.  Set Kernel Menuconfig:

Boot options  —>

[*] Use appended device tree blob to zImage (EXPERIMENTAL)  

2. device tree dtb file attached to the kernel image

  $: cat arch/arm/boot/zImage arch/arm/boot/dts/xxx.dtb > arch/arm/boot/zImage_dtb

3. Build uImage

  mkimage -A arm -O linux -C none  -T kernel -a 0x80008000 -e 0x80008000 -n 'Linux uImage' -d zImage_dtb uImage_dtb

4. The log file Log_zImage  is the error message for booting zImage_dtb.

    The log file Log_uImage  is the error message for booting uImage_dtb.


Could you help to check the problem? Thanks a lot.

 


Log_zImage.txt
U-Boot 2014.07 (Aug 14 2017 - 21:38:42)

CPU  : DRA752-GP ES2.0
Board: DRA74x EVM REV <NULL>
I2C:   ready
DRAM:  256 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

serial# not set, setting...
Target spinup took 0 ms.
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst 
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: suf rod vecise.. Rev: nain
            Type: Hard Disk
            Capacity: not available
Found 1 device(s).
SCSI:  Net:   <ethaddr> not set. Validating first E-fuse MAC
cpsw
Hit any key to stop autoboot:  0 
@ADAPTER@
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading uEnv.txt
221 bytes read in 3 ms (71.3 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc0 ...
3984181 bytes read in 210 ms (18.1 MiB/s)
109113 bytes read in 16 ms (6.5 MiB/s)
Booting from mmc0 ...
Kernel image @ 0x82000000 [ 0x000000 - 0x3b20f8 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8e6fd000, end 8e71aa38 ... OK

Starting kernel ...








U-Boot 2014.07 (Aug 14 2017 - 21:11:58)

CPU  : DRA752-GP ES2.0
Board: DRA74x EVM REV <NULL>
I2C:   ready
DRAM:  256 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

serial# not set, setting...
Target spinup took 0 ms.
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst 
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: suf rod vecise.. Rev: nain
            Type: Hard Disk
            Capacity: not available
Found 1 device(s).
SCSI:  Net:   <ethaddr> not set. Validating first E-fuse MAC
cpsw
Hit any key to stop autoboot:  0 
@ADAPTER@
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
3984229 bytes read in 210 ms (18.1 MiB/s)
Booting from mmc0 ...
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux uImage
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3984165 Bytes = 3.8 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
Log_uImage.txt
U-Boot 2014.07 (Aug 14 2017 - 21:11:58)

CPU  : DRA752-GP ES2.0
Board: DRA74x EVM REV <NULL>
I2C:   ready
DRAM:  256 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

serial# not set, setting...
Target spinup took 0 ms.
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst 
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: suf rod vecise.. Rev: nain
            Type: Hard Disk
            Capacity: not available
Found 1 device(s).
SCSI:  Net:   <ethaddr> not set. Validating first E-fuse MAC
cpsw
Hit any key to stop autoboot:  0 
@ADAPTER@
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
3984229 bytes read in 210 ms (18.1 MiB/s)
Booting from mmc0 ...
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux uImage
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3984165 Bytes = 3.8 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK

1. booting zImage_dtb.

U-Boot 2014.07 (Aug 14 2017 - 21:38:42)

CPU  : DRA752-GP ES2.0
Board: DRA74x EVM REV <NULL>
I2C:   ready
DRAM:  256 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

serial# not set, setting...
Target spinup took 0 ms.
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: suf rod vecise.. Rev: nain
            Type: Hard Disk
            Capacity: not available
Found 1 device(s).
SCSI:  Net:   <ethaddr> not set. Validating first E-fuse MAC
cpsw
Hit any key to stop autoboot:  0
@ADAPTER@
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading uEnv.txt
221 bytes read in 3 ms (71.3 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc0 ...
3984181 bytes read in 210 ms (18.1 MiB/s)
109113 bytes read in 16 ms (6.5 MiB/s)
Booting from mmc0 ...
Kernel image @ 0x82000000 [ 0x000000 - 0x3b20f8 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8e6fd000, end 8e71aa38 ... OK

Starting kernel ...

2. booting uImage_dtb.

U-Boot 2014.07 (Aug 14 2017 - 21:11:58)

CPU  : DRA752-GP ES2.0
Board: DRA74x EVM REV <NULL>
I2C:   ready
DRAM:  256 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

serial# not set, setting...
Target spinup took 0 ms.
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: suf rod vecise.. Rev: nain
            Type: Hard Disk
            Capacity: not available
Found 1 device(s).
SCSI:  Net:   <ethaddr> not set. Validating first E-fuse MAC
cpsw
Hit any key to stop autoboot:  0
@ADAPTER@
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
3984229 bytes read in 210 ms (18.1 MiB/s)
Booting from mmc0 ...
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux uImage
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3984165 Bytes = 3.8 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK

BR,

ShawnX Lin