**** BEGIN LOGGING AT Tue Aug 31 02:59:57 2010 Aug 31 16:20:27 Hi I tryed to boot that zimage for Zire31 I build yesterday, cocoboot gives me: DataMgr.c, Line:7399, DMWRITE: DMWRITE check failed then I have to restart the device Aug 31 16:41:29 J__: maybe the zImage is too big ... Aug 31 16:42:29 914,4KB Aug 31 16:44:24 How big should it be? Aug 31 16:53:18 J__: should be ok Aug 31 16:53:42 J__: check how many RAM does it indicate the device has Aug 31 16:55:00 32mb not much but I think it should be enough Aug 31 16:55:13 J__: naw ... the device has 16 megs of RAM I believe Aug 31 16:55:23 the rest is some permanent storage Aug 31 16:55:35 J__: check cocoboot, if you tap on menu, there should be some "memory info" Aug 31 16:57:16 Marex: Yes I did that, there is 32mb but if I googled it specifications said 16mb Aug 31 16:59:34 Marex: I checked it with FileZ it is 16mb Aug 31 17:22:16 hm ... so cocoboot misindicated it ... Aug 31 17:23:13 Marex: you think that might be the problem? Aug 31 17:23:31 yea, it might be trying to allocate space somewhere ... I dunno where Aug 31 17:23:46 do you have some older version of cocoboot ? Aug 31 17:23:50 like v0.4 or so ? Aug 31 17:23:55 yes I have Aug 31 17:24:31 try it then Aug 31 17:24:38 http://hackndev.com/trac/attachment/wiki/Bootpacks/cocoboot.prc or this one Aug 31 17:28:32 Is there a software for Linux that could install programmes to Palm becouse everytime I want to install something I have to switch to Windows Aug 31 17:32:32 http://hackndev.com/node/189 same thing as here ... Aug 31 17:37:29 J__: http://hackndev.com/node/189 same thing as here ... Aug 31 17:38:57 Marex: hmm interesting so it's a cocoboot error Aug 31 17:39:51 Marex: I tried cocoboot 0.4 or 0.3 (file said 0.4 zire 0.3) now ram is correct but the error remains Aug 31 17:43:29 J__: yea ... bootloader hacking time Aug 31 17:44:28 Marex: I'm so screwed :D Aug 31 17:44:34 J__: pilot-link - tools to communicate with a PalmOS PDA Aug 31 17:44:50 J__: no, just get palmos sdk, prc-tools and pilrc Aug 31 17:46:07 J__: or try removing various things from the kernel Aug 31 17:46:12 J__: to make it smaller ... you know Aug 31 17:51:08 J__: actually with cocoboot 0.6, there is one more option -- write an elf second-stage bootloader Aug 31 17:51:36 just try writing code like "int main() { for(;;); return 0; }" Aug 31 17:51:47 save it to a file ... eg. test.c Aug 31 17:52:24 then compile it ... arm-linux-gnueabi-gcc -static -nostdlib -o zImage tmp.c Aug 31 17:52:34 try booting this zImage ... and check if it does work or not Aug 31 17:52:42 the device should just hang Aug 31 17:53:01 Marex: oki I'll give it a try Aug 31 17:54:18 hm ... not int main(), but void _start() ... and remove return 0; Aug 31 17:54:20 that should do Aug 31 17:54:24 probably Aug 31 17:55:53 Marex: like this "void _start() { for(;;); }" ? Aug 31 17:56:49 J__: download marex.hackndev.com/kernel.bin Aug 31 17:56:55 J__: rename it to zImage and boot it Aug 31 17:57:02 btw. does Z31 have an SD card ? Aug 31 17:57:35 yes Aug 31 17:58:06 you can copy the cocoboot binary to SD:/Palm/Launcher Aug 31 17:58:19 then delete it from the device and pop in the card Aug 31 17:58:35 you should be able to run cocoboot from card ... it's easy Aug 31 17:59:00 zImage should be in the root of the card (SD:/zImage) Aug 31 18:00:50 I know that zmage is in root of card, ok I downloaded that kernel.bin and I think it booted, Zire says Loading/zImage... 33408b Ok Aug 31 18:01:09 J__: it hanged ? Aug 31 18:01:26 Marex: yes it does Aug 31 18:02:01 J__: ok, so you need to trim down the kernel size it seems Aug 31 18:02:12 J__: the other option is to port uboot and use it as a second stage bootloader Aug 31 18:05:10 Marex: hmm oki I don't know, if there is something in kernel that is useless I think I could trim it down on the other hand porting uboot and using it as second stage bootloader sounds fun :) Aug 31 18:07:00 J__: http://git.denx.de/?p=u-boot/u-boot-pxa.git;a=shortlog;h=refs/heads/for-wd-master-2 this is the tip of the u-boot pxa branch, it should hit release by xmas Aug 31 18:07:34 J__: all you will need to get Z31 running is change similar to this one: http://git.denx.de/?p=u-boot/u-boot-pxa.git;a=commit;h=95110d40d3ad9bbb6bd535f5c842f0bb9510d8fd Aug 31 18:07:41 J__: that's to get LCD operational Aug 31 18:08:12 J__: and this one http://git.denx.de/?p=u-boot/u-boot-pxa.git;a=commit;h=3046b78701925db51010676c81699ce0d9f9bbd2 ... Aug 31 18:08:22 that's the rest Aug 31 18:08:42 moreover, you can remove all code in lowlevel_init.S (to avoid reiniting the RAM) Aug 31 18:09:03 just leave Aug 31 18:09:10 .globl lowlevel_init Aug 31 18:09:13 lowlevel_init Aug 31 18:09:17 mov pc, lr Aug 31 18:09:27 in place ... these three lines should be sufficient Aug 31 18:10:00 then tweak the constants in palmtc.h (well ... palmz31.h) Aug 31 18:10:03 should be it ... Aug 31 18:10:56 ah ... you need to change config.mk and move uboot to eg. 0xa0800000 Aug 31 18:12:45 J__: looks too hard ? Aug 31 18:14:54 Marex: well I am certainly bit confused, but I think I can at least give it a try Aug 31 18:15:35 J__: is there any LED on z31 for example ? Aug 31 18:16:22 Marex: no I don't think so Aug 31 18:16:43 ok Aug 31 18:16:58 J__: well ... you can try uboot then Aug 31 18:17:26 J__: or strip down the kernel (remove filesystem support etc) Aug 31 18:17:43 J__: you can remove just about everything but PXA Framebuffer support Aug 31 18:20:08 Marex: well if I strip down the kernel there is not much left of it so I think it would be a bit useless don't you think? Aug 31 18:20:30 you can use loadable kernel modules Aug 31 18:21:10 and hey, you are bootstraping the platform with a crippled bootloader ... you might even end up using kexec or whatever to boot the real thing later Aug 31 18:24:03 oki so I'll try to strip down the kernel and I'll see Aug 31 18:25:24 J__: you're still a student btw ? Aug 31 18:26:40 Marex: yes I am still in fact at a high school Aug 31 18:27:15 J__: ah ... nostalgic :'-) Aug 31 18:27:25 * Marex feels history might repeat Aug 31 18:30:05 Marex: :) oki I'm going to strip down that kernel Aug 31 18:32:39 J__: did you get the PM ? **** ENDING LOGGING AT Wed Sep 01 02:59:57 2010