Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1583

RZ/A1H booting issue using SD-RAM

$
0
0

Dear Renesas Team.

We are using custom RZ/A1H board, we are able to boot the board using internal 10MB of RAM, but if if try to boot from external SD-RAM of 64MB i.e from etron, the board is not booing it is trowing  the below error.

U-Boot 2017.05-g331a150-dirty (Apr 29 2022 - 13:03:23 +0530)

CPU: Renesas Electronics CPU rev 0.0
Board: SMRZA1H
DRAM: 10 MiB
MMC: sh-sdhi: 0
SF: Detected mx25l51235f with page size 256 Bytes, erase size 64 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

In: serial_sh
Out: serial_sh
Err: serial_sh
SPI Flash Memory Map
------------------------------------
Start Size SPI
u-boot: 0x00000000 0x080000 0
env: 0x00080000 0x040000 0
DT: 0x000C0000 0x040000 0
Kernel: 0x00100000 0x280000 0+1 (size*=2)
rootfs: 0x00400000 0x1C00000 0+1 (size*=2)
Net: CPU Net Initialization Failed
No ethernet found.
Hit any key to stop autoboot: 0
=>
=> run xsa_boot
SF: Detected mx25l51235f with page size 256 Bytes, erase size 64 KiB, total 64 MiB
SF: 32768 bytes @ 0xc0000 Read: OK0
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
Current Mode: Read Mode (3-byte Addr) (RZ/A1 reset value)
SF: Detected mx25l51235f with page size 256 Bytes, erase size 64 KiB, total 64 MiB
New Mode: Quad I/O Read Mode (4-byte Addr)
img_addr 18200000
u-boot Booting Linux...

to boot from SD-RAM, i'am following the bewlo seteps

1)change the address in .dtb file memory@20000000 {
    device_type = "memory";

    reg = <0x0C000000 0x04000000>; 
    };

2)change physical address 0x0C000000 by tying ./build.sh kernel menuconfig

3)build the kernel completely

4)run xsa_command to boot from SD-ram

this is the environment set in my u-boot

In: serial_sh
Out: serial_sh
Err: serial_sh
SPI Flash Memory Map
------------------------------------
Start Size SPI
u-boot: 0x00000000 0x080000 0
env: 0x00080000 0x040000 0
DT: 0x000C0000 0x040000 0
Kernel: 0x00100000 0x280000 0+1 (size*=2)
rootfs: 0x00400000 0x1C00000 0+1 (size*=2)
Net: CPU Net Initialization Failed
No ethernet found.
Hit any key to stop autoboot: 0
=> pri
baudrate=115200
bootargs=ignore_loglevel
bootcmd=run xsa_boot
bootdelay=3
cmdline_common=ignore_loglevel earlyprintk earlycon=scif,0xE8008800
dtb_lcdfb_dyn=fdt set /display@fcff7400 fb_phys_addr <0x00000000>
dtb_lcdfb_fixed=fdt set /display@fcff7400 fb_phys_addr <0x60000000>
dtb_mem_ram=fdt memory 0x20000000 0x00A00000
dtb_mem_sdram=fdt memory 0x0C000000 0x04000000
dtb_read_ram=sf probe 0; sf read 20500000 C0000 8000; fdt addr 20500000 ; setenv addr_dtb 20500000
dtb_read_sdram=sf probe 0; sf read 0D800000 C0000 8000; fdt addr 0D800000 ; setenv addr_dtb 0D800000
fs_axfs=rootfstype=axfs rootflags=physaddr=0x18800000
fs_mtd=root=/dev/mtdblock0
s_boot=run dtb_read_sdram dtb_mem_sdram dtb_lcdfb_fixed; setenv bootargs ${cmdline_common} ${fs_mtd}; fdt chosen; run uImg
sa_boot=run dtb_read_sdram dtb_mem_sdram dtb_lcdfb_fixed; setenv bootargs ${cmdline_common} ${fs_axfs}; fdt chosen; run uImg
stderr=serial_sh
stdin=serial_sh
stdout=serial_sh
uImg=qspi dual; cp.b 0x18200000 0x0C000000 0x400000; bootm start 0x0C000000 - 0D800000; bootm loados ; bootm go
xImg=qspi single; setenv cmd bootx 0x18200000 ${addr_dtb}; run cmd
xa_boot=run dtb_read_ram dtb_mem_ram dtb_lcdfb_dyn; setenv bootargs ${cmdline_common} ${fs_axfs}; fdt chosen; run xImg
xsa_boot=run dtb_read_sdram dtb_mem_sdram dtb_lcdfb_fixed; setenv bootargs ${cmdline_common} ${fs_axfs}; fdt chosen; run xImg

Environment size: 1416/262140 bytes

Help us to sort out this issue

Thanks & regards

Mahesh R


Viewing all articles
Browse latest Browse all 1583

Trending Articles