



problem booting linux with u-boot on a s3adsp1800a board
by rpg2101 on Nov 4, 2013 |
rpg2101
Posts: 4 Joined: Apr 11, 2013 Last seen: Sep 28, 2014 |
||
Hi , I'm trying to boot linux with u-boot on a s3adsp1800 board. First I debug both things (U-boot and linux) separately with or32-elf-gdb and U-boot works fine but linux stoped at the"Calibrating delay
loop..." procedure. Now I'm trying to boot linux with u-boot via tftp and everything works fine until linux image start booting. At this time i don't get anymore response from the uart interface. U-Boot 2013.04-g9181a73-dirty (Oct 30 2013 - 19:58:28) CPU: OpenRISC-1200 (rev 8) @ 50 MHz D-Cache: 4096 bytes, 16 bytes/line, 1 way(s) I-Cache: 512 bytes, 16 bytes/line, 1 way(s) DMMU: 64 sets, 1 way(s) IMMU: 64 sets, 1 way(s) MAC unit: yes Debug unit: yes Performance counters: no Power management: no Interrupt controller: yes Timer: yes Custom unit(s): no Supported instructions: ORBIS32: yes ORBIS64: no ORFPX32: no ORFPX64: no Hardware multiplier: yes Hardware divider: yes BOARD: s3adsp1800a SF: Detected M25P64 with page size 64 KiB, total 8 MiB NET: ETHOC-0 ==> printenv baudrate=115200 bootfile=uImage ethact=ETHOC-0 ethaddr=00:12:34:56:78:9a gatewayip=192.168.1.1 ipaddr=192.168.1.32 loadaddr=0x100000 netmask=255.255.255.0 serverip=192.168.1.98 stderr=serial stdin=serial stdout=serial Environment size: 243/131068 bytes ==> ping 192.168.1.98 ethoc Using ETHOC-0 device host 192.168.1.98 is alive ==> tftpboot ethoc Using ETHOC-0 device TFTP from server 192.168.1.98; our IP address is 192.168.1.32 Filename 'uImage'. Load address: 0x100000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# #################### 1.5 MiB/s done Bytes transferred = 5060627 (4d3813 hex) ==> bootm 0x100000 ## Booting kernel from Legacy Image at 00100000 ... Image Name: Linux for OpenRISC Image Type: OpenRISC 1000 Linux Kernel Image (uncompressed) Data Size: 5060563 Bytes = 4.8 MiB Load Address: 00000000 Entry Point: 00000100 Verifying Checksum ... OK Loading Kernel Image ... OK OK Why is this happend if when I use gdb I'm getting uart response??? Sorry but my English isn't so good. I hope someone can help. Thanks in advance. Pablo. |
RE: problem booting linux with u-boot on a s3adsp1800a board
by rpg2101 on Nov 5, 2013 |
rpg2101
Posts: 4 Joined: Apr 11, 2013 Last seen: Sep 28, 2014 |
||
Update :
When I try to gdb the kernel image directly I've got this output.
Compiled-in FDT at c029c1c0
Linux version 3.9.0-dirty (cudar73@cudar73-desktop) (gcc version 4.5.1-or32-1.0rc4 (OpenRISC 32-bit toolchain for or3
CPU: OpenRISC-12 (revision 8) @50 MHz
-- dcache: 4096 bytes total, 16 bytes/line, 1 way(s)
-- icache: 512 bytes total, 16 bytes/line, 1 way(s)
-- dmmu: 64 entries, 1 way(s)
-- immu: 64 entries, 1 way(s)
-- additional features:
-- debug unit
-- PIC
-- timer
setup_memory: Memory: 0x0-0x2000000
Reserved - 0x01ffda90-0x00002570
Setting up paging and PTEs.
map_ram: Memory: 0x0-0x2000000
itlb_miss_handler c0002198
dtlb_miss_handler c0002000
OpenRISC Linux -- http://openrisc.net
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4080
Kernel command line: earlycon=uart,mmio,0x90000000,115200 console=ttyS0,115200
Early serial console at MMIO 0x90000000 (options '115200')
bootconsole [uart0] enabled
PID hash table entries: 128 (order: -4, 512 bytes)
Dentry cache hash table entries: 4096 (order: 1, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 0, 8192 bytes)
Memory: 28448k/32768k available (2228k kernel code, 4320k reserved, 337k data, 1416k init, 0k highmem)
mem_init_done ...........................................
NR_IRQS:32 nr_irqs:32 0
1
Mount-cache hash table entries: 1024
KERNEL: Unaligned Access 0xc101368f
CPU #: 0
PC: c0092b54 SR: 8079 SP: c1031df8
GPR00: 0 GPR01: c1031df8 GPR02: c101368f GPR03: ffffe000
GPR04: c1012000 GPR05: b55 GPR06: 4 GPR07: c1013608
GPR08: c1012000 GPR09: c00929b4 GPR10: c1030000 GPR11: ffffe000
GPR12: 0 GPR13: 0 GPR14: c040e120 GPR15: 43e
GPR16: 7 GPR17: 40 GPR18: d GPR19: fffffffc
GPR20: 6 GPR21: 3 GPR22: c1017e78 GPR23: 3fffffe7
GPR24: 00000000 GPR25: 00000000 GPR26: 00000000 GPR27: 00000cc0
GPR28: 0 GPR29: c1032000 GPR30: 0 GPR31: c03e65b8
RES: ffffe000 oGPR11: ffffffff
Process kdevtmpfs (pid: 9, stackpage=c101fbb0)
Stack: Stack dump [0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008
sp + 04: 0xc101368f
sp + 08: 0xffffe000
sp + 12: 0xc1012000
sp + 16: 0xb55
sp + 20: 0x04
sp + 24: 0xc1013608
sp + 28: 0xc1012000
sp + 32: 0xc00929b4
sp + 36: 0xc1030000
sp + 40: 0xffffe000
sp + 44: 0x00
... Lot of text ..
sp + 740: 0x55555555
sp + 744: 0x55555555
sp + 748: 0x55555555
sp + 752: 0x55555555
sp + 756: 0x55555555
sp + 760: 0x55555555
sp + 764: 0x55555555
sp + 768: 0x55555555
sp + 772: 0x55555555
sp + 776: 0x55555555
sp + 780: 0x55555555
sp + 784: 0x55555555
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
=======================
Code: bd b0 00 01 e0 82 18 03 e0 a5 20 02 b8 a5 00 0f 10 00 00 66 b8 a5 00 90 (dc) 02 80 00 dc 02 28 02 98 67 00 00
Die:#: 368f
CPU #: 0
PC: c0092b54 SR: 8079 SP: c1031df8
GPR00: 0 GPR01: c1031df8 GPR02: c101368f GPR03: ffffe000
GPR04: c1012000 GPR05: b55 GPR06: 4 GPR07: c1013608
GPR08: c1012000 GPR09: c00929b4 GPR10: c1030000 GPR11: ffffe000
GPR12: 0 GPR13: 0 GPR14: c040e120 GPR15: 43e
GPR16: 7 GPR17: 40 GPR18: d GPR19: fffffffc
GPR20: 6 GPR21: 3 GPR22: c1017e78 GPR23: 3fffffe7
GPR24: 0 GPR25: 0 GPR26: 0 GPR27: 00000cc0
GPR28: 0 GPR29: c1032000 GPR30: 0 GPR31: c03e65b8
RES: ffffe000 oGPR11: ffffffff
Process kdevtmpfs (pid: 9, stackpage=c101fbb0)
Stack: Stack dump [0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008
sp + 04: 0xc101368f
sp + 08: 0xffffe000
sp + 12: 0xc1012000
sp + 16: 0xb55
sp + 20: 0x04
sp + 24: 0xc1013608
sp + 28: 0xc1012000
sp + 32: 0xc00929b4
sp + 36: 0xc1030000
sp + 40: 0xffffe000
... Lot of text ...
sp + 700: 0x55555555
sp + 704: 0x55555555
sp + 708: 0x55555555
sp + 712: 0x55555555
sp + 716: 0x55555555
sp + 720: 0x55555555
sp + 724: 0x55555555
sp + 728: 0x55555555
sp + 732: 0x55555555
sp + 736: 0x55555555
sp + 740: 0x55555555
sp + 744: 0x55555555
sp + 748: 0x55555555
sp + 752: 0x55555555
sp + 756: 0x55555555
sp + 760: 0x55555555
sp + 764: 0x55555555
sp + 768: 0x55555555
sp + 772: 0x55555555
sp + 776: 0x55555555
sp + 780: 0x55555555
sp + 784: 0x55555555
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
=======================
Code: bd b0 00 01 e0 82 18 03 e0 a5 20 02 b8 a5 00 0f 10 00 00 66 b8 a5 00 90 (dc) 02 80 00 dc 02 28 02 98 67 00 00
UNHANDLED_EXCEPTION: entering infinite loop
It seems that the "KERNEL: Unaligned Access 0xc101368f" it's the problem , how do i prevent this access ?
Thx.
|
RE: problem booting linux with u-boot on a s3adsp1800a board
by rpg2101 on Nov 6, 2013 |
rpg2101
Posts: 4 Joined: Apr 11, 2013 Last seen: Sep 28, 2014 |
||
Update .
Now I'm getting this output : [ 0.000000] Compiled-in FDT at c02a8820 [ 0.000000] Linux version 3.9.0-dirty (cudar73@cudar73-desktop) (gcc version 4.5.1-or323 [ 0.000000] CPU: OpenRISC-12 (revision 8) @25 MHz [ 0.000000] -- dcache: 4096 bytes total, 16 bytes/line, 1 way(s) [ 0.000000] -- icache: 512 bytes total, 16 bytes/line, 1 way(s) [ 0.000000] -- dmmu: 64 entries, 1 way(s) [ 0.000000] -- immu: 64 entries, 1 way(s) [ 0.000000] -- additional features: [ 0.000000] -- debug unit [ 0.000000] -- PIC [ 0.000000] -- timer [ 0.000000] setup_memory: Memory: 0x0-0x8000000 [ 0.000000] Reserved - 0x07ffda90-0x00002570 [ 0.000000] Setting up paging and PTEs. [ 0.000000] map_ram: Memory: 0x0-0x8000000 [ 0.000000] itlb_miss_handler c0002198 [ 0.000000] dtlb_miss_handler c0002000 [ 0.000000] OpenRISC Linux -- http://openrisc.net [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16312 [ 0.000000] Kernel command line: console=uart,mmio,0x90000000,115200 [ 0.000000] Early serial console at MMIO 0x90000000 (options '115200') [ 0.000000] bootconsole [uart0] enabled [ 0.000000] PID hash table entries: 512 (order: -2, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 3, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 2, 32768 bytes) [ 0.000000] Memory: 126088k/131072k available (2270k kernel code, 4984k reserved, 345k ) [ 0.000000] mem_init_done ........................................... [ 0.000000] NR_IRQS:32 nr_irqs:32 0 [ 0.000000] 50.00 BogoMIPS (lpj=250000) [ 0.000000] pid_max: default: 32768 minimum: 301 [ 0.020000] Mount-cache hash table entries: 1024 [ 0.390000] devtmpfs: initialized [ 0.460000] NET: Registered protocol family 16 [ 0.810000] Switching to clocksource openrisc_timer [ 0.960000] NET: Registered protocol family 2 [ 1.040000] TCP established hash table entries: 1024 (order: 0, 8192 bytes) [ 1.050000] TCP bind hash table entries: 1024 (order: -1, 4096 bytes) [ 1.060000] TCP: Hash tables configured (established 1024 bind 1024) [ 1.110000] TCP: reno registered [ 1.110000] UDP hash table entries: 512 (order: 0, 8192 bytes) [ 1.130000] UDP-Lite hash table entries: 512 (order: 0, 8192 bytes) [ 1.160000] NET: Registered protocol family 1 [ 1.240000] RPC: Registered named UNIX socket transport module. [ 1.250000] RPC: Registered udp transport module. [ 1.250000] RPC: Registered tcp transport module. [ 1.260000] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.300000] Unable to handle kernel NULL pointer dereference at virtual address 0x000002 [ 1.310000] [ 1.310000] Oops#: 0000 [ 1.320000] CPU #: 0 [ 1.320000] PC: c00a8ce0 SR: 0000827f SP: c7017d70 [ 1.330000] GPR00: 00000000 GPR01: c7017d70 GPR02: 00000001 GPR03: 00000000 [ 1.340000] GPR04: 00000001 GPR05: 00000004 GPR06: 00000000 GPR07: 01c000e1 [ 1.350000] GPR08: 00000004 GPR09: c00a8ce0 GPR10: c7016000 GPR11: 00000000 [ 1.360000] GPR12: 0000006e GPR13: 0000006e GPR14: c7066000 GPR15: ffffffd1 [ 1.370000] GPR16: c7017d90 GPR17: 00000800 GPR18: ffffff9c GPR19: fffffff0 [ 1.380000] GPR20: c02a90fe GPR21: 0000000f GPR22: c7017dfc GPR23: abdf6f5d [ 1.390000] GPR24: 000003e8 GPR25: 00000000 GPR26: 000003e8 GPR27: 00000c74 [ 1.400000] GPR28: c7017e44 GPR29: 000033e8 GPR30: c02952dc GPR31: c03f25b8 [ 1.410000] RES: 00000000 oGPR11: ffffffff [ 1.420000] Process swapper (pid: 1, stackpage=c7000f40) [ 1.430000] .... And all the stack dump ... |



