Hi all,
I have also made some progress with cross-compiling the kernel.
First of all I had to solve some issues when compiling the HOST tools
of Linux (genksyms etc.) on Darwin since there are some assumptions
about availability of header files. This resulted in missing malloc.h
and optargs...
Now the kernel compiles mostly, emitting approx. 20 warnings about
uninitialized variables e.g.
drivers/scsi/scsi_lib.c: In function `scsi_alloc_sgtable':
drivers/scsi/scsi_lib.c:708: warning: 'index' might be used
uninitialized in this function
drivers/scsi/scsi_lib.c: In function `scsi_free_sgtable':
drivers/scsi/scsi_lib.c:708: warning: 'index' might be used
uninitialized in this function
drivers/scsi/scsi_lib.c:708: warning: 'index' might be used
uninitialized in this function
and some other minor issues.
But then I get:
SYSMAP System.map
SYSMAP .tmp_System.map
rm -f arch/mips/boot/compressed/vmlinux.bin.gz
mipsel-debianetch-linux-gnu-objcopy -O binary --remove-
section=.reginfo --remove-section=.mdebug --remove-section=.comment --
remove-section=.note --remove-section=.pdr --remove-section=.options --
remove-section=.MIPS.options vmlinux arch/mips/boot/compressed/
vmlinux.bin
gzip -v9f arch/mips/boot/compressed/vmlinux.bin
arch/mips/boot/compressed/vmlinux.bin: 56.7% -- replaced with arch/
mips/boot/compressed/vmlinux.bin.gz
mipsel-debianetch-linux-gnu-gcc -D__ASSEMBLY__ -mabi=32 -G 0 -mno-
abicalls -fno-pic -pipe -msoft-float -ffreestanding -march=mips32 -
Wa,-mips32 -Wa,--trap -Iinclude/asm-mips/mach-jz4730 -Iinclude/asm-
mips/mach-generic \
-DIMAGESIZE=Sep \
-DKERNEL_ENTRY=0x80315ff0 \
-DLOADADDR=0x80010000 \
-c -o arch/mips/boot/compressed/head.o arch/mips/boot/compressed/head.S
arch/mips/boot/compressed/head.S: Assembler messages:
arch/mips/boot/compressed/head.S:86: Internal error!
Assertion failure in md_apply_fix3 at ../../gas/config/tc-mips.c line
10939.
Please report this bug.
Oops... When I look into the head.S line 86 it is:
.comm .stack,4096*2,4
Anyone knows incompatibilities? I use gcc-3.4.6 and binutils-2.16
Nikolaus
)
Am 12.09.2009 um 18:09 schrieb Ruben Viets:
Hi,
Some additional info from my debugging of the mini-book 2.6 kernel
sources.
Attached a zip file from my trial CONFIG file.
First step: copy CONFIG_X to .config
Second step: you need to run make oldconfig. and enter untill end of
file.
Third step: make uImage.
Optional: make modules
The standard kernel will stuck at boot due to no startup rootfs. I
changed the do_mounts.c to boot from /dev/mmcblk0p2. See issue 5.
If you hook up a serial port via cutecom or minicom you can see the
console commands (my output is included in zipfile)
Check http://projects.kwaak.net/twiki/bin/view/Epc700/SerialConsoleHowto
.
Updates from the five previous issues:
1) Issue with sound, the driver i2s jzsoc is loaded, I modified the /
sound/oss/ak4642en.c GPIO items to be the same as the skytone one.
This only works with esound stuff (esd, esdplay will work). SDL, X11
and audio mixer isn't able to run. (get a message from kernel that
audio is busy or unsupported channels)
2) Issue with shutdown. no update
3) Issue with touchpad buttons. no update.
4) Solved. If I want to compile modules for the angstrom kernel. I
disable CONFIG_PREEMPT and add softfloat compiling to gcc. add -
msoft-float in the makefile at LD and CC compiling.
5) Issue with my own kernel. Have found a work-around for this. I
modified the do_mount.c
if (saved_root_name[0]) {
// root_device_name = saved_root_name; << commented this
part out
root_device_name = "/dev/mmcblk0p2"; << and added
this one, to load from my second SD ext3 partition.
Any advice for issue 1-3 ?
Grt Ruben.
What can you do with the new Windows Live? Find out
<configRV.zip>_______________________________________________
Mipsbook-devel mailing list
Mipsbook-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel
_______________________________________________
Mipsbook-devel mailing list
Mipsbook-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel