Author Topic: Bootimage Creation Problem..  (Read 3361 times)

willgan

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
Bootimage Creation Problem..
« on: July 19, 2006, 07:04:23 am »
i'm having some problem creating a bootimage..

when i make bootimage_targetinstall

i get this message

Code: [Select]
# concaternate stage1 and stage2 parts
#cp /mnt/hd/akita-rom/build/grub-0.93/stage1/stage1 /mnt/hd/akita-rom/bootdisk/boot.img
#cat /mnt/hd/akita-rom/build/grub-0.93/stage2/stage2 >> /mnt/hd/akita-rom/bootdisk/boot.img
# save image - it can be copied to a disk
#cp /mnt/hd/akita-rom/bootdisk/boot.img /mnt/hd/akita-rom/bootdisk/boot.img.grub
# calculate size of "free" space and fill with 0xFF
#/bin/ls -l /mnt/hd/akita-rom/bootdisk/boot.img | \
#awk '{size = $5} END{size = **512 - size;for (i = 0; i < size; i++) printf ("\xff")}' >> /mnt/hd/akita-rom/bootdisk/boot.img
awk '{size = 0} END{size = **512 - size;for (i = 0; i < size; i++) printf ("\xff")}' >> /mnt/hd/akita-rom/bootdisk/boot.img
awk: cmd. line:1: {size = 0} END{size = **512 - size;for (i = 0; i < size; i++) printf ("\xff")}
awk: cmd. line:1:                       ^ syntax error
make: *** [/mnt/hd/akita-rom/state/bootdisk.targetinstall] Error 1
when i check the rules/bootimage.make
it seems like i'm missing some parameters..

PTXCONF_BOOTDISK_SECT &
PTXCONF_BOOTDISK_HEAD)

I manage to get autoboot.sh, rootfs.img, kernel.img, u-boot.bin but i;m missing
emergenc.img and updater.pro
I use the original beta4 emergenc.img and updater.pro..
The U-boot flashes ok.. but when i try to boot it up.. by holding ON and plug in the power and unhold ON.. it doesn't run emergency boot..

Any idea...?
I check updater.pro but don't understand what the numbers about...

Thanx
My Current Z...

Zaurus C1000 - Pdaxii13
Using Pdaxrom-builder (SVN) for building packages

sashz

  • Sr. Member
  • ****
  • Posts: 388
    • View Profile
    • http://
Bootimage Creation Problem..
« Reply #1 on: July 19, 2006, 08:03:40 am »
Quote
i'm having some problem creating a bootimage..

when i make bootimage_targetinstall

i get this message

Code: [Select]
# concaternate stage1 and stage2 parts
#cp /mnt/hd/akita-rom/build/grub-0.93/stage1/stage1 /mnt/hd/akita-rom/bootdisk/boot.img
#cat /mnt/hd/akita-rom/build/grub-0.93/stage2/stage2 >> /mnt/hd/akita-rom/bootdisk/boot.img
# save image - it can be copied to a disk
#cp /mnt/hd/akita-rom/bootdisk/boot.img /mnt/hd/akita-rom/bootdisk/boot.img.grub
# calculate size of "free" space and fill with 0xFF
#/bin/ls -l /mnt/hd/akita-rom/bootdisk/boot.img | \
#awk '{size = $5} END{size = **512 - size;for (i = 0; i < size; i++) printf ("\xff")}' >> /mnt/hd/akita-rom/bootdisk/boot.img
awk '{size = 0} END{size = **512 - size;for (i = 0; i < size; i++) printf ("\xff")}' >> /mnt/hd/akita-rom/bootdisk/boot.img
awk: cmd. line:1: {size = 0} END{size = **512 - size;for (i = 0; i < size; i++) printf ("\xff")}
awk: cmd. line:1:                       ^ syntax error
make: *** [/mnt/hd/akita-rom/state/bootdisk.targetinstall] Error 1
when i check the rules/bootimage.make
it seems like i'm missing some parameters..

PTXCONF_BOOTDISK_SECT &
PTXCONF_BOOTDISK_HEAD)

I manage to get autoboot.sh, rootfs.img, kernel.img, u-boot.bin but i;m missing
emergenc.img and updater.pro
I use the original beta4 emergenc.img and updater.pro..
The U-boot flashes ok.. but when i try to boot it up.. by holding ON and plug in the power and unhold ON.. it doesn't run emergency boot..

Any idea...?
I check updater.pro but don't understand what the numbers about...

Thanx
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135710\"][{POST_SNAPBACK}][/a][/div]

plz attach your .config file here

willgan

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
Bootimage Creation Problem..
« Reply #2 on: July 19, 2006, 08:19:35 am »
i've attached my config file
My Current Z...

Zaurus C1000 - Pdaxii13
Using Pdaxrom-builder (SVN) for building packages

sashz

  • Sr. Member
  • ****
  • Posts: 388
    • View Profile
    • http://
Bootimage Creation Problem..
« Reply #3 on: July 19, 2006, 08:42:04 am »
ups, sorry,

you must run:

make image

for finalize your build

http://mail.pdaxrom.org/node/101

willgan

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
Bootimage Creation Problem..
« Reply #4 on: July 19, 2006, 10:34:58 am »
ok...

while i'm building make image, i encounter another problem...

Code: [Select]
--------------------------
target: cacko.imageinstall
--------------------------

cd /mnt/hd/akita-rom/bootdisk/feed && IPKG_CONF_DIR=/mnt/hd/akita-rom/scripts/bin /mnt/hd/akita-rom/scripts/bin/ipkg -ignore-scripts install vendor-tweaks
filename - vendor-tweaks_1.0.0_armv5tel.ipk

Downloading file:///mnt/hd/akita-rom/bootdisk/feed/vendor-tweaks_1.0.0_armv5tel.ipk ...
Done.
Installing vendor-tweaks...Done.
echo pdaXrom 1.1.0beta4 \"Kathrin\" "(`date +"%H:%M %d/%m/%y"`)" > /tmp/roots/root-akita-initrd/etc/.buildver
echo pdaXrom 1.1.0beta4 \"Kathrin\"> /tmp/roots/root-akita-initrd/etc/issue
rm   -rf /tmp/roots/root-akita-initrd/home/tmp
mkdir -p /tmp/roots/root-akita-initrd/home/tmp/ipkg
###cd /tmp/roots/root-akita-initrd && tar c etc  > /tmp/roots/root-akita-initrd/root/.etc_default.tar
###cp -f /mnt/hd/akita-rom/config/bootdisk/.dev_default.tar /tmp/roots/root-akita-initrd/root/
##cd /tmp/roots/root-akita-initrd && tar c home >                        /tmp/roots/root-akita-initrd/root/.home_default.tar
##cd /tmp/roots/root-akita-initrd && tar c var  >                        /tmp/roots/root-akita-initrd/root/.var_default.tar
##test -f /tmp/roots/root-akita-initrd/usr/lib/ipkg/info/bluez-utils.postinst && rm -f /tmp/roots/root-akita-initrd/usr/lib/ipkg/info/bluez-utils.postinst
rm -f /tmp/roots/root-akita-initrd/sbin/{ldconfig,rpcinfo}
#rm -f /tmp/roots/root-akita-initrd/sbin/rpcinfo
rm -f /tmp/roots/root-akita-initrd/usr/lib/ipkg/lists/*
rm -f /tmp/roots/root-akita-initrd/usr/lib/gconv/*
rm -f /tmp/roots/root-akita-initrd/usr/bin/{iconv,tic}
"/opt/cross/arm/3.4.6-xscale-softvfp-akita"/bin/genext2fs -r 0 -d /tmp/roots/root-akita-initrd \
    -f -U -D /mnt/hd/akita-rom/config/bootdisk/device_table-sysfs.txt \
    -b 8000 \
    /mnt/hd/akita-rom/bootdisk/initrd
number of blocks too low, increasing to 13165
/opt/cross/arm/3.4.6-xscale-softvfp-akita/bin/genext2fs: couldn't allocate a block (no free space)
make: *** [/mnt/hd/akita-rom/state/cacko.imageinstall] Error 1

My development hard disk still have about 700 Mb free space..

i can increase the block 16000 and it produce all the files..
But u-boot cannot flash... C+D + power ...

I'm still testing...

Overall... most of the package compile without any problems..
My Current Z...

Zaurus C1000 - Pdaxii13
Using Pdaxrom-builder (SVN) for building packages