> >Anyway, by initialisiing UART in uncomp_setup_arch() , I now get
> >"Uncompressing Linux...done"
> >and "now booting the kernel.",
> >but then .... nothing
>
> Try putting debugging at the start of head-armv.S to see if it's managing to
> call that code at the right address. If so then trace it through and see
> where it falls over.
>
Ok, I've put debbuging stuff and now I can tell that It runs until we
try to set MMU on. till there, I'm able to write things on serial at
addr 0x42000000. After that, I try to write things on serial at addr
0xFE000000, and I get nothing.
Here my code: (I know i'm destroying r3 and r4, but we dont need
them between my two debugs)
There is one thing I dont understand: You initialise cr1 using r0, but
r0 is not initialised in order to set MMU , is it ?
It has been used to address page tables
Christophe
@
@ The following should work on both v3 and v4 implementations
@
mov lr, pc
mov pc, r10 @ Call processor flush
(returns ctrl reg)
adr r5, __entry
sub r10, r10, r5 @ Make r10 PIC
ldr lr, .Lbranch
mov r3,#0x042000000
1: ldrb r4,[r3,#0x178]
tst r4,#0x10
beq 1b
mov r4,#'M'
strb r4,[r3,#0x160]
mcr p15, 0, r0, c1, c0 @ Enable MMU &
caches. In 3 instructions
@ we lose this page!
mov pc, lr
.Lalready_done_mmap:
mov r3,#0xFE000000
1: ldrb r4,[r3,#0x178]
tst r4,#0x10
beq 1b
mov r4,#'m'
strb r4,[r3,#0x160]
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]