Author Topic: Problem Building Pdaxrom From Repository  (Read 3195 times)

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Problem Building Pdaxrom From Repository
« on: June 24, 2007, 02:32:38 pm »
Hi,

I'm trying to build pdaXrom from the svn repository.  After finishing the cross toolchain the build proces of the OS image is aborted with the following error:

Code: [Select]
-------------------------------------
target: xchain-mkimage-u-boot.compile
-------------------------------------

PATH="/opt/cross/arm/3.4.6-xscale-softvfp"/bin:$PATH make -C /home/egoe/build/pdaXrom-builder/work/build/xchain/mkimage-u-boot-1.1.4
make[1]: Entering directory `/home/egoe/build/pdaXrom-builder/work/build/xchain/mkimage-u-boot-1.1.4'
cc -O2 -I. -DUSE_HOSTCC   -c -o mkimage.o mkimage.c
cc -O2 -I. -DUSE_HOSTCC   -c -o crc32.o crc32.c
crc32.c:15:18: error: zlib.h: No such file or directory
crc32.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crc_table’
crc32.c:153: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crc32’
crc32.c:155: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
crc32.c:156: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘len’
crc32.c:157: error: expected identifier or ‘(’ before ‘{’ token
make[1]: *** [crc32.o] Error 1
make[1]: Leaving directory `/home/egoe/build/pdaXrom-builder/work/build/xchain/mkimage-u-boot-1.1.4'
make: *** [/home/egoe/build/pdaXrom-builder/work/state/xchain-mkimage-u-boot.compile] Error 2

I'm new to the builder tool, so I've no idea where to look. The zlib.h file is available in the crosschain include directory.

Any ideas?

Thanks,
cortez
[div align=\"center\"]== == == == == == == == == == == == == ==
www.omegamoon.com
Zaurus SL-C750 - Died in a dreadful coffee experiment, has a second life somewhere in the Czech Republic
Zaurus SL-C1000 - Multiboot Zubuntu, Debian, Fedora, Poky, Android and others
Zaurus SL-C3100 - Development device, currently Zubuntu 2.0
Zaurus SL-6000L - The fridge is running Zubuntu 1.0
Zaurus SL-C860 - Cacko, untouched since kindly donated, waiting for Zubuntu
== == == == == == == == == == == == == ==[/div]

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Problem Building Pdaxrom From Repository
« Reply #1 on: June 26, 2007, 05:03:20 am »
Oh my, this was too obvious, if I only learned to read better...

The xchain-mkimage-u-boot needs to be compiled for the host-, not the target system!
So after installation of the zlib1g-dev package on my host, building continues...

Just to let you know
[div align=\"center\"]== == == == == == == == == == == == == ==
www.omegamoon.com
Zaurus SL-C750 - Died in a dreadful coffee experiment, has a second life somewhere in the Czech Republic
Zaurus SL-C1000 - Multiboot Zubuntu, Debian, Fedora, Poky, Android and others
Zaurus SL-C3100 - Development device, currently Zubuntu 2.0
Zaurus SL-6000L - The fridge is running Zubuntu 1.0
Zaurus SL-C860 - Cacko, untouched since kindly donated, waiting for Zubuntu
== == == == == == == == == == == == == ==[/div]

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Problem Building Pdaxrom From Repository
« Reply #2 on: June 27, 2007, 01:28:50 am »
I am stuck again. This time the efltk package won't compile. I don't know why. Has this something to do with the fact that I'm using Ubuntu in combination with gcc 4.1.2?

I'm learning a lot, that's for sure. If this finally works out fine I'm willing to help add/update packages to the build system, but for now....

Any help?
[div align=\"center\"]== == == == == == == == == == == == == ==
www.omegamoon.com
Zaurus SL-C750 - Died in a dreadful coffee experiment, has a second life somewhere in the Czech Republic
Zaurus SL-C1000 - Multiboot Zubuntu, Debian, Fedora, Poky, Android and others
Zaurus SL-C3100 - Development device, currently Zubuntu 2.0
Zaurus SL-6000L - The fridge is running Zubuntu 1.0
Zaurus SL-C860 - Cacko, untouched since kindly donated, waiting for Zubuntu
== == == == == == == == == == == == == ==[/div]

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Problem Building Pdaxrom From Repository
« Reply #3 on: June 27, 2007, 05:49:55 pm »
I think you're supposed to use pdaX86 to build the ROM. I've been trying to use it to build a kernel, and it seems to work fine and relatively easily (unless you have a SATA hard drive )

I haven't actually tried to build anything yet (waiting on info on how to build just the kernel), but no errors as of yet (aside from not being able to DL source, which you can get around by DLing manually)

Hope this helps.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Problem Building Pdaxrom From Repository
« Reply #4 on: June 28, 2007, 10:40:25 am »
Thanks for your reply Capn_Fish!

Welcome to the wonderful world of pdax86... I've got it up and running using VirtualBox under Windows, but I think I'm missing something here.

The steps I followed so far were:

1. Setup VirtualBox in combination with pdaX86
 - Create 2 virtual harddisks with 25Gb space each (dynamically expanding)
 - Mount pdaXrom.iso (1.1.0beta4) as CD-ROM in VirtualBox
 - Start virtual machine and login to pdaX86 as 'root'
 - fdisk /dev/hda -> Create new partition
   fdisk /dev/hdb -> Create new partition
   mkfs.ext3 /dev/hda1
   mkswap /dev/hdb1
   mount /dev/hda1 /mnt/hd
 - setup -> Choose /dev/hda1 (default) -> press OK
 - reboot

2. pdaX86 harddisk installation
 - mkdir ~/hdd-mount-point
 - setup-hd ~/hdd-mount-point

Next I want to get svn up and running. To do this, I tried:

3. Initial setup
 - mkdir ~/zip
 - mkdir ~/src
 - mkdir ~/pdaXrom-builder
 - startx
 - Start Mozilla
 - Download 'Apache httpd-2.2.4' from http://httpd.apache.org/download.cgi in ~/zip
 - Download 'Subversion' from subversion.tigris.org in ~/zip
 - cd ~/src
   tar xjf ~/zip/httpd-2.2.4
   tar xjf ~/zip/subversion-1.4.4.tar.bz2

4. Build Apache
 - cd ~/src/httpd-2.2.4
 - ./configure
 - make
 - make install

The last step (make install) results in lots of errors saying /usr/local/apache2 is a read-only file system.

I'm quite comfortable with Ubuntu, but this is new to me. I'm sure that one of the more experienced pdaXrom developers can help me out here. It must be possible to build and install new packages, or am I wrong?

InSearchOf? Meanie? adf? Capn_Fish? louigi600? Anyone else?

Help me out please  
cortez
« Last Edit: June 28, 2007, 10:41:18 am by cortez »
[div align=\"center\"]== == == == == == == == == == == == == ==
www.omegamoon.com
Zaurus SL-C750 - Died in a dreadful coffee experiment, has a second life somewhere in the Czech Republic
Zaurus SL-C1000 - Multiboot Zubuntu, Debian, Fedora, Poky, Android and others
Zaurus SL-C3100 - Development device, currently Zubuntu 2.0
Zaurus SL-6000L - The fridge is running Zubuntu 1.0
Zaurus SL-C860 - Cacko, untouched since kindly donated, waiting for Zubuntu
== == == == == == == == == == == == == ==[/div]

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Problem Building Pdaxrom From Repository
« Reply #5 on: June 28, 2007, 09:56:01 pm »
Try rebooting with the CD, mounting the non-swap drive on /mnt/hd, and running

Code: [Select]
setup-hd /mnt/hd
then rebooting without the CD into the HD installation. That solved my issues.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Problem Building Pdaxrom From Repository
« Reply #6 on: June 29, 2007, 03:43:32 am »
After applying the setup-hd /mnt/hd command I reboot, but the booting proces ends with an error saying

Code: [Select]
Warning: unable to open an initial console.I had to reboot from CD again, and looking in /dev/hd/dev it's completely empty! I copied everything from /dev into /mnt/hd/dev (using Midnight Commander) and after that I am now the happy owner of a working pdaX86 system.

Thanks for your help!
[div align=\"center\"]== == == == == == == == == == == == == ==
www.omegamoon.com
Zaurus SL-C750 - Died in a dreadful coffee experiment, has a second life somewhere in the Czech Republic
Zaurus SL-C1000 - Multiboot Zubuntu, Debian, Fedora, Poky, Android and others
Zaurus SL-C3100 - Development device, currently Zubuntu 2.0
Zaurus SL-6000L - The fridge is running Zubuntu 1.0
Zaurus SL-C860 - Cacko, untouched since kindly donated, waiting for Zubuntu
== == == == == == == == == == == == == ==[/div]

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Problem Building Pdaxrom From Repository
« Reply #7 on: June 29, 2007, 07:55:51 am »
Glad to have helped. I had the same issues a couple of days ago.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo