Hi all,
This week I've almost reached bdsh prompt. Currently I'm facing
some bug which leads to reusing same physical page two times. Once,
it's allocated by kernel (and it's in kernel identity mapping space)
and then as_area_create() gives same page to userspace taskmon process.
That leads to multiple VA->PA mappings (one from userspace and one
from kernel identity mapping space).
Anyway, HelenOS booting on LEON is able to mount initrd, start ext4,
tmpfs and locfs servers and taskmon. So we're almost home.
I'm aware that there are three weeks left. I'll now double my efforts
to finish project according to plan with all proposed milestones. Good
thing is, when I'll reach bdsh, adding timer-based scheduling and
writing
userspace device drivers will be easy (trivial compared to SPARC
register
window hell).
PS Sorry for delayed status report... I was debugging that last bug
for one full day and forgot about sending it on time.
Regards,
Kuba
Current boot log:
#v+
HelenOS bootloader, release 0.5.0 (Fajtl), revision 1936M
([email protected])
Built on 2013-11-14 20:37:27 for sparc32
Copyright (c) 2001-2013 HelenOS project
0x4000bf78|0x4000bf78: kernel image (462544/130433 bytes)
0x4002bcf9|0x4002bcf9: ns image (147807/64089 bytes)
0x4003b752|0x4003b752: loader image (147010/64266 bytes)
0x4004b25c|0x4004b25c: init image (148600/64418 bytes)
0x4005adfe|0x4005adfe: locsrv image (155304/67789 bytes)
0x4006b6cb|0x4006b6cb: rd image (146106/63431 bytes)
0x4007ae92|0x4007ae92: vfs image (161902/71050 bytes)
0x4008c41c|0x4008c41c: logger image (151079/65805 bytes)
0x4009c529|0x4009c529: ext4fs image (226020/97409 bytes)
0x400b41aa|0x400b41aa: initrd image (20971520/6513170 bytes)
ABMA devices:
<1:00c> at 0x80000100 irq 2
<1:00d> at 0x80000200
<1:011> at 0x80000300 irq 8
Memory size: 64MB
Inflating components ... initrd ext4fs logger vfs rd locsrv init loader
ns kernel Booting the kernel ...
base = 0x80a00000
kernel_size = 0x00071000
stack_base = 0x80a71000
SPARTAN kernel, release 0.5.0 (Fajtl), revision 1936M
([email protected])
Built on 2013-11-14 20:37:27 for sparc32
Copyright (c) 2001-2013 HelenOS project
config.base=0x80a00000 config.kernel_size=462848
config.stack_base=0x81fae000 config.stack_size=8192
irqmp regs: 0xf0000200
IRQMP: set mask to 0x00000008 on cpu 0
leon3_output_init
machine.bootinfo=0x80a4bc90, machine.bootinfo->uart_base=0x80000100
grlib_uart_init: paddr=0x80000100
base = 0x80a00000
kernel_size = 0x00071000
stack_base = 0x80a71000
SPARTAN kernel, release 0.5.0 (Fajtl), revision 1936M
([email protected])
Built on 2013-11-14 20:37:27 for sparc32
Copyright (c) 2001-2013 HelenOS project
config.base=0x80a00000 config.kernel_size=462848
config.stack_base=0x81fae000 config.stack_size=8192
irqmp regs: 0xf0000200
leon3_output_init
machine.bootinfo=0x80a4bc90, machine.bootinfo->uart_base=0x80000100
grlib_uart_init: paddr=0x80000100
Detected 1 CPU(s), 65536 KiB free memory
RAM disk at 0x40bae000 (size 20971520 bytes)
ns: HelenOS IPC Naming Service
ns: Accepting connections
init: HelenOS init
loc: HelenOS Location Service
rd: HelenOS RAM disk server
rd: Found RAM disk at 0x40bae000, 20971520 bytes
vfs: HelenOS VFS server
logger: HelenOS Logging Service
ext4fs: HelenOS ext4 file system server
loc: Accepting connections
vfs: Accepting connections
logger: Accepting connections
rd: Accepting connections
ext4fs: Accepting connections
init: Root filesystem mounted on / (ext4fs at bd/initrd)
init: Starting /srv/tmpfs
Set task name
Reply OK
Jump to entry point at 0x00004074
tmpfs: HelenOS TMPFS file system server
tmpfs: Accepting connections
init: Starting /srv/locfs
Set task name
Reply OK
Jump to entry point at 0x00004074
locfs: HelenOS Device Filesystem
locfs: Accepting connections
init: Starting /srv/taskmon
Set task name
Reply OK
Jump to entry point at 0x00004074
taskmon: Task Monitoring Service
######> Kernel panic on cpu0 due to a failed assertion: <######
waitq_sleep_timeout() at generic/src/synch/waitq.c:264:
(!PREEMPTION_DISABLED) || (PARAM_NON_BLOCKING(flags, usec))
THE=0x8014e000: pe=2 thr=0x8014c000 task=0x8014b000 cpu=0x80125000
as=0x8005b12c magic=0xfacefeed
0x8014faa0: generic/src/debug/stacktrace.o:stack_trace()+0x0000000c
0x80a0250c: 0x00000008()
0xa734e001: test/thread/thread1.o:finish()+0x25682477
Unaligned access to 0xa734e07d from 0x80a05280
Task init:vfs (6) killed due to an exception at program counter
0x00000000.
Kill message: mem_address_not_aligned.
######> Kernel panic on cpu0 due to a failed assertion: <######
waitq_sleep_timeout() at generic/src/synch/waitq.c:264:
(!PREEMPTION_DISABLED) || (PARAM_NON_BLOCKING(flags, usec))
THE=0x8014e000: pe=2 thr=0x8014c000 task=0x8014b000 cpu=0x80125000
as=0x8005b12c magic=0xfacefeed
0x8014f548: generic/src/debug/stacktrace.o:stack_trace()+0x0000000c
0x80a3e400: 0x00000080()
cpu0: halted
#v-
_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel