OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: cortez 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:
-------------------------------------
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
-
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
-
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?
-
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.
-
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 (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
-
Try rebooting with the CD, mounting the non-swap drive on /mnt/hd, and running
setup-hd /mnt/hd
then rebooting without the CD into the HD installation. That solved my issues.
-
After applying the setup-hd /mnt/hd command I reboot, but the booting proces ends with an error saying
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!
-
Glad to have helped. I had the same issues a couple of days ago.