PDA

View Full Version : [REQ] Boot partition in internal memory.


Gulle69
19th October 2008, 03:06 AM
Hi world!

I don't know if this is the right place to ask for this feature, since I guess this is more hardware dependent than just plain programming:

Is it possible to create a bootable partition in the internal memory of the Diamond?

This could possible kill my need for USB memory once and for all.:cool:

okokur
19th October 2008, 06:50 AM
hello,

i do it with sd-cards under linux.

one possible way is to use vmware.

when you put your diamond to windows, select on diamond harddisc.
vmware-linux have to recognized a harddisc.
now you can make partitions with fdisk.

i know, my guideapplication is very grossly. but the two sentence
costs you more than five or more houers of work, if you dont know,
how to use fdisk or vmware with linux inside.

why you want partition your internal memory?

okokur

gioiellino
20th October 2008, 09:42 AM
I do it in my X51V, it need if you want start a kernel linux boot.
with Linux partition manager you must create small partition swap in strorage memory and put the kernel img here, in the storage card you must put the haret.exe + config file.

the commands are:
The SD card needs to be partitioned into two partitions: one small FAT partition that WinCE can see, and one EXT2 partition used as root file system. I'll assume that the block device of the SD card is called /dev/sda. Replace this with the correct device on your system. Instruction could be slightly different for each version of fdisk :

* Delete all partitions on the SD card:

fdisk /dev/sda
d
1
d
2
d
3

* Create partitions, for example a 10MB /dev/sda1 and /dev/sda2 using the rest:

fdisk /dev/sda
n
p
1
<default> (should be cylinder 1)
+10M
n
p
2
<default>
<default> (should be last cylinder of the card)
t
1
4
w

* Create file systems, a VFAT on /dev/sda1 and EXT2 on /dev/sda2:

mkdosfs /dev/sda1
mke2fs /dev/sda2

* Copy HaRET, the kernel and default.txt onto sda1:

mount /dev/sda1 /mnt
[diamond] cp zImage???????????????/mnt/zImage
cp haret-0.4.8.exe /mnt/haret.exe
cp default.txt /mnt/default.txt
umount /dev/sda1

mount /dev/sda2 /mnt
[diamond] bzcat diamond?????????.rootfs.tar.bz2 | (cd /mnt; tar x)
umount /mnt

3) Boot

start haret.exe and tap the "Run" button...
enable Mirror Mode(Start -> Settings -> System>Mirror).

for Diamond you need Zimage and rootfs
look here http://linuxtogo.org/~lgorris/kaiser-bootkit/
for other problem or command here
http://forum.xda-developers.com/showthread.php?t=402002

Riel
20th October 2008, 09:53 AM
I think it just works fine...

But Haret doesn't work on Diamond.