* [U-Boot-Users] undefined instruction during bootp
@ 2007-05-15 20:49 Junior
2007-05-15 21:12 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Junior @ 2007-05-15 20:49 UTC (permalink / raw)
To: u-boot
Hi all,
I'm getting an undefined instruction error at the end of the bootp command:
Filename 'kernel_img'.
Load address: 0xc0f00000
Loading: #################################################################
############undefined instruction
pc : [<75b1ac08>] lr : [<c1fc139c>]
sp : c1f5fb00 ip : ffffffff fp : c1f5fded
r10: 8388956c r9 : 328b03e0 r8 : c1f5ffdc
r7 : 6bfbb68d r6 : 8ecfd531 r5 : 5faa503d r4 : e926e94c
r3 : 70000048 r2 : 6137fe02 r1 : 0000002e r0 : f53c4775
Flags: Nzcv IRQs off FIQs off Mode SVC_32
Resetting CPU ...
This seem to happen durint the NetSendUDPPacket functions:
c1fc1384: ebffff66 bl c1fc1124 <NetSetIP>
c1fc1388: e5970000 ldr r0, [r7]
c1fc138c: e0601004 rsb r1, r0, r4
c1fc1390: e0811009 add r1, r1, r9
c1fc1394: e281101c add r1, r1, #28 ; 0x1c
c1fc1398: eb000d27 bl c1fc483c <eth_send>
c1fc139c: e3a00000 mov r0, #0 ; 0x0
c1fc13a0: e28dd00c add sp, sp, #12 ; 0xc
c1fc13a4: e8bd8ef0 ldmia sp!, {r4, r5, r6, r7, r9, sl, fp, pc}
c1fc13a8: c1fd60d0 ldrgtsb r6, [sp]!
c1fc13ac: c1fd6dd4 ldrgtsb r6, [sp, #212]!
c1fc13b0: c1fd8d54 mvngts r8, r4, asr sp
c1fc13b4: c1fd6dd0 ldrgtsb r6, [sp, #208]!
c1fc13b8: c1fd8d48 mvngts r8, r8, asr #26
c1fc13bc: c1fd8d50 mvngts r8, r0, asr sp
c1fc13c0: c1fd8d58 mvngts r8, r8, asr sp
c1fc13c4: c1fd9380 mvngts r9, r0, lsl #7
c1fc13c8: c1fd937c mvngts r9, ip, ror r3
Does anyone know how to solve this problem?
Thanks,
--Jr.
^ permalink raw reply [flat|nested] 5+ messages in thread* [U-Boot-Users] undefined instruction during bootp
2007-05-15 20:49 [U-Boot-Users] undefined instruction during bootp Junior
@ 2007-05-15 21:12 ` Wolfgang Denk
2007-05-15 21:32 ` Junior
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2007-05-15 21:12 UTC (permalink / raw)
To: u-boot
In message <50699DE79EE.000005B9ejr@inbox.com> you wrote:
>
> I'm getting an undefined instruction error at the end of the bootp command:
...
> Does anyone know how to solve this problem?
What does your memory map look like? Maybe you are overwriting data or
code needed by U-Boot?
Also, consider problem number 1: memory errors dues to incorrect RAM
initialization.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
No, I'm not going to explain it. If you can't figure it out, you
didn't want to know anyway... :-)
- Larry Wall in <1991Aug7.180856.2854@netlabs.com>
^ permalink raw reply [flat|nested] 5+ messages in thread* [U-Boot-Users] undefined instruction during bootp
2007-05-15 21:12 ` Wolfgang Denk
@ 2007-05-15 21:32 ` Junior
2007-05-15 21:42 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Junior @ 2007-05-15 21:32 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: wd at denx.de
> Sent: Tue, 15 May 2007 23:12:16 +0200
> To: ejr at inbox.com
> Subject: Re: [U-Boot-Users] undefined instruction during bootp
>
> In message <50699DE79EE.000005B9ejr@inbox.com> you wrote:
>>
>> I'm getting an undefined instruction error at the end of the bootp
>> command:
> ...
>> Does anyone know how to solve this problem?
>
> What does your memory map look like? Maybe you are overwriting data or
> code needed by U-Boot?
>
> Also, consider problem number 1: memory errors dues to incorrect RAM
> initialization.
I've considered that but unless I'm missing some config item, that looks good.
I've got 32MB ram:
arch_number = 0x00000186
env_t = 0x00000000
boot_params = 0xC0000100
DRAM bank = 0x00000000
-> start = 0xC0000000
-> size = 0x02000000
ethaddr = 00:08:EE:00:63:B2
ip_addr = 192.168.0.13
baudrate = 115200 bps
My TEXT_BASE starts at 0xc1fc0000 and I'm loading at 0xc0f00000 (~1.2M)
cpu/mya404/start.o(.text)
.text 0xc1fc0000 0x420 cpu/mya404/start.o
0xc1fc0048 _bss_start
0xc1fc004c _bss_end
0xc1fc0044 _armboot_start
0xc1fc0000 _start
0xc1fc03e0 reset_cpu
*(.text)
.text 0xc1fc0420 0xec board/mia404/libmia404.a(lowlevel_init.o)
0xc1fc0424 lowlevel_init
.text 0xc1fc050c 0x4d0 cpu/mya404/libmya404.a(interrupts.o)
0xc1fc088c set_timer
0xc1fc0804 reset_timer
0xc1fc0724 do_fiq
0xc1fc076c interrupt_init
0xc1fc0670 do_undefined_instruction
0xc1fc0534 show_regs
0xc1fc0748 do_irq
0xc1fc09c0 get_tbclk
0xc1fc0878 get_timer
0xc1fc07d0 reset_timer_masked
0xc1fc0518 bad_mode
0xc1fc0808 get_timer_masked
0xc1fc089c udelay
0xc1fc0928 udelay_masked
0xc1fc06b8 do_prefetch_abort
0xc1fc09ac get_ticks
0xc1fc0510 disable_interrupts
0xc1fc0700 do_not_used
0xc1fc06dc do_data_abort
0xc1fc0694 do_software_interrupt
0xc1fc050c enable_interrupts
.text 0xc1fc09dc 0x98 lib_arm/libarm.a(_udivsi3.o)
0xc1fc09dc __udivsi3
.text 0xc1fc0a74 0x2f0 lib_arm/libarm.a(board.o)
0xc1fc0b5c hang
0xc1fc0b6c start_armboot
0xc1fc0a74 sbrk
.text 0xc1fc0d64 0x4 lib_arm/libarm.a(div0.o)
0xc1fc0d64 __div0
.text 0xc1fc0d68 0x14f8 net/libnet.a(net.o)
0xc1fc1d18 getenv_IPaddr
0xc1fc15b8 NetCksumOk
0xc1fc0f80 NetSetTimeout
0xc1fc1620 copy_filename
0xc1fc15dc NetEthHdrSize
0xc1fc1674 ip_to_string
0xc1fc104c ArpTimeoutCheck
0xc1fc16f0 NetReceive
0xc1fc1c98 string_to_ip
0xc1fc1264 NetSendUDPPacket
0xc1fc16cc print_IPaddr
> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> No, I'm not going to explain it. If you can't figure it out, you
> didn't want to know anyway... :-)
> - Larry Wall in <1991Aug7.180856.2854@netlabs.com>
^ permalink raw reply [flat|nested] 5+ messages in thread* [U-Boot-Users] undefined instruction during bootp
2007-05-15 21:32 ` Junior
@ 2007-05-15 21:42 ` Wolfgang Denk
2007-05-15 21:51 ` Junior
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2007-05-15 21:42 UTC (permalink / raw)
To: u-boot
In message <50C96E42594.00000616ejr@inbox.com> you wrote:
>
> My TEXT_BASE starts at 0xc1fc0000 and I'm loading at 0xc0f00000 (=7E1.2M)
Sounds very tight to me. Download to a much lower address and check
what happens...
And please don't full-quote.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Worlds are conquered, galaxies destroyed -- but a woman is always a
woman.
-- Kirk, "Conscience of the King", stardate unknown
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-05-15 21:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-15 20:49 [U-Boot-Users] undefined instruction during bootp Junior
2007-05-15 21:12 ` Wolfgang Denk
2007-05-15 21:32 ` Junior
2007-05-15 21:42 ` Wolfgang Denk
2007-05-15 21:51 ` Junior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox