Hi all,
In my previous post, I reported that blob could not initialize the SDRAM correctly. And later on , Marc Singer released a new boot loader (thanks!) I did tried it on my board again. Unfortunately , it fall into the same problem.
After read the code of bs_7400_dbg.elf, I tried to merge them and finally get apex work on my LPD7A400. By the method of try and error, I found a interesting behaviour.
If I disable the write to PCMCIACON (#0x3. PC Card 1 and 2 Enable), bs_7400_dbg.elf will not be able to get SDRAM up for lolo.
I am not quite understand why it need to set this value for SDRAM to work...
b00000c8 <_enable_pcmcia>:
b00000c8: e3a06102 mov r6, #-2147483648 ; 0x80000000
b00000cc: e2866d81 add r6, r6, #8256 ; 0x2040
b00000d0: e3a00000 mov r0, #0 ; 0x0
b00000d4: e3800003 orr r0, r0, #3 ; 0x3
b00000d8: e5860000 str r0, [r6] ; the originial code
b00000d8: e1a00000 nop (mov r0,r0) ; the new code
b00000dc: e1a00000 nop (mov r0,r0)