[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] Error -3 while decompressing!
- To: microblaze-uclinux@xxxxxxxxxxxxxx
- Subject: [microblaze-uclinux] Error -3 while decompressing!
- From: "Monthadar Al-Jaberi" <monthadar@xxxxxxxxx>
- Date: Thu, 9 Oct 2008 01:25:09 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=pOkRK4Ojc4/NssnBF33/Hov57JCK2326O8XQyVNg7Ek=; b=wQvnNNf3tqEDHmA0EXwVS/IiU3UQHiddu2Aj/nKz5+KqgOIto2Os1BoWdM62pYDeCa fYIPqNjPQgCGGpU7kBmF7B6eOKcfUNaAAOJmGi+a3bQnXOuJGsORj0ATyp+oj2t+px4Z 7lmdPWkZLPbEbDdjk2u2J5igJlR1emtcIMdiw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=ZhMdtKDSwg1LUc2RuTf7w9yEQw169oWtDv/22Nowra2i2Nv9G0wvcnx2FGXIz244bp VjGAwzPUJT/bjdVsDUC+1BzDo4E6jMMXaAwWiIIeJge666C6OG1iKZ1zB0d3yQoFN+WY /5+xdeEvFsOrb80BY4YHtrVnJBAL2lIqoYRpc=
- Reply-to: microblaze-uclinux@xxxxxxxxxxxxxx
- Sender: owner-microblaze-uclinux@xxxxxxxxxxxxxx
Hi!
I have been following the UserGuid at the petalogix website and
configured the petalinux with the reference-design for
Spartan3E500-RedD. I didn't change the xps project except for
automatic update from version 9.1 to 10.1.
Then following the steps until "Building PetaLinux":
$ yes "" | make oldconfig dep all
I get the following error:
make[2]: Entering directory
`/home/hilal/petalinux/petalinux-v0.30-rc1/software/petalinux-dist/vendors/Xilinx/Spartan3E500-RevD'
cc -o mkcramfs -I/home/hilal/petalinux/petalinux-v0.30-rc1/software/petalinux-dist/linux-2.6.x/include
/home/hilal/petalinux/petalinux-v0.30-rc1/software/petalinux-dist/user/cramfs/mkcramfs.c
-lz
/home/hilal/petalinux/petalinux-v0.30-rc1/software/petalinux-dist/user/cramfs/mkcramfs.c:38:18:
error: zlib.h: No such file or directory
/home/hilal/petalinux/petalinux-v0.30-rc1/software/petalinux-dist/user/cramfs/mkcramfs.c:
In function 'cramsort':
/home/hilal/petalinux/petalinux-v0.30-rc1/software/petalinux-dist/user/cramfs/mkcramfs.c:157:
warning: assignment discards qualifiers from pointer target type
/home/hilal/petalinux/petalinux-v0.30-rc1/software/petalinux-dist/user/cramfs/mkcramfs.c:158:
warning: assignment discards qualifiers from pointer target type
/home/hilal/petalinux/petalinux-v0.30-rc1/software/petalinux-dist/user/cramfs/mkcramfs.c:
In function 'write_superblock':
/home/hilal/petalinux/petalinux-v0.30-rc1/software/petalinux-dist/user/cramfs/mkcramfs.c:398:
error: 'Z_NULL' undeclared (first use in this function)
/home/hilal/petalinux/petalinux-v0.30-rc1/software/petalinux-dist/user/cramfs/mkcramfs.c:398:
error: (Each undeclared identifier is reported only once
/home/hilal/petalinux/petalinux-v0.30-rc1/software/petalinux-dist/user/cramfs/mkcramfs.c:398:
error: for each function it appears in.)
/home/hilal/petalinux/petalinux-v0.30-rc1/software/petalinux-dist/user/cramfs/mkcramfs.c:
In function 'main':
/home/hilal/petalinux/petalinux-v0.30-rc1/software/petalinux-dist/user/cramfs/mkcramfs.c:670:
error: 'Z_NULL' undeclared (first use in this function)
make[2]: *** [mkcramfs] Error 1
make[2]: Leaving directory
`/home/hilal/petalinux/petalinux-v0.30-rc1/software/petalinux-dist/vendors/Xilinx/Spartan3E500-RevD'
make[1]: *** [image] Error 2
make[1]: Leaving directory
`/home/hilal/petalinux/petalinux-v0.30-rc1/software/petalinux-dist/vendors'
make: *** [image] Error 2
I traced it to a file called: common.mak (in
$(ROOTDIR)/vendors/Petalogix/common)
mkcramfs: $(ROOTDIR)/user/cramfs/mkcramfs.c
$(HOSTCC) -o $@ -I$(ROOTDIR)/$(LINUXDIR)/include $< -lz
And searching on the net I found that some people suggested to install
zlib. So I did that
sudo apt-get install zlib1g-dev (I run Ubuntu Studios 8.04 (basiclly Ubuntu))
Then the build was successful ( or I would think so)
So I downloaded the bitstream, u-boot.srec and then image.bin and typed
go 0x24000000
Linux started booting but I get this error and it hangs,
Freeing unused kernel memory: 92k freed
Error -3 while decompressing!
24213493(2081)->27e6f000(4096)
Error -3 while decompressing!
2421018b(2393)->24501000(4096)
Error -3 while decompressing!
24211383(2302)->24503000(4096)
Error -3 while decompressing!
2421503d(2031)->24508000(4096)
Error -3 while decompressing!
24215671(2161)->24527000(4096)
I suspect it is something with zlib.h, I tried to link to the zlib.h I
found in ($ROOTDIR)/lib/zlib by changing in the common.mak file
mkcramfs: $(ROOTDIR)/user/cramfs/mkcramfs.c
$(HOSTCC) -o $@ -I$(ROOTDIR)/$(LINUXDIR)/include
-I$(ROOTDIR)/$(LINUXDIR)/lib/zlib $< -lz
but make still gave errors.
Shouldn't this work by itself?
thank you for any advice
best regards,
--
//Monthadar Al Jaberi
Here is a log from kermit:
=================================================
FS-BOOT First Stage Bootloader (c) 2006 PetaLogix
=================================================
FS-BOOT: System initialisation completed.
FS-BOOT: No existing image in FLASH. Starting image download.
FS-BOOT: Waiting for SREC image....
FS-BOOT: Image download successful.
FS-BOOT: Warning image location differ from default boot location.
Image will not boot automatically after POR.
FS-BOOT: Press 'n' to boot old image.
FS-BOOT: Use new image.
FS-BOOT: Booting image...
SDRAM :
Enabling caches :
Icache:OK
Dcache:OK
U-Boot Start:0x27fc0000
Malloc Start:0x27f60000
Board Info Start:0x27f5ffd0
Boot Parameters Start:0x27f4ffd0
FLASH: 16 MB
ETHERNET: MAC:<NULL>
*** Warning - bad CRC, using default environment
U-Boot> loadb 0x24000000
## Ready for binary (kermit) download to 0x24000000 at 115200 bps...
(Back at c-0164e555.bredbandsbolaget.se)
----------------------------------------------------
(/home/hilal/) C-Kermit>send /tftpboot/image.bin
(/home/hilal/) C-Kermit>connect
Connecting to /dev/ttyS0, speed 115200
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
## Total Size = 0x00437023 = 4419619 Bytes
## Start Addr = 0x24000000
U-Boot> go 0x24000000
## Starting application at 0x24000000 ...
Found romfs @ 0x24207000 (0x00230000)
#### klimit 2421e000 ####
Moving 0x00230000 bytes from 0x24207000 to 0x2421d9c8
New klimit: 0x2444e000
Linux version 2.6.20-uc0 (hilal@c-0164e555) (gcc version 3.4.1 (
PetaLinux 0.20 Build -rc1 050607 )) #1 Wed Oct 8 16:44:40 CEST 2008
setup_cpuinfo: initialising
setup_cpuinfo: No PVR support in CPU. Using static compile-time info
set_cpuinfo_static: Using static CPU info.
setup_memory: max_mapnr: 0x27fff
setup_memory: min_low_pfn: 0x24000
setup_memory: max_low_pfn: 0x4000
On node 0 totalpages: 16384
DMA zone: 128 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 16256 pages, LIFO batch:3
Normal zone: 0 pages used for memmap
Built 1 zonelists. Total pages: 16256
Kernel command line:
OPB INTC #0 at 0x41200000
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 60500k/65536k available
Calibrating delay loop... 24.72 BogoMIPS (lpj=123648)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
xgpio0 #0 at 0x40000000 mapped to 0x40000000 device: 10,185 not using IRQ
xgpio1 #1 at 0x40020000 mapped to 0x40020000 device: 10,186 not using IRQ
uartlite.0: ttyS0 at MMIO 0x40600000 (irq = 2) is a uartlite
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
eth0: using fifo mode.
eth0: No PHY detected. Assuming a PHY at address 0.
eth0: Xilinx EMACLite #0 at 0x40E00000 mapped to 0x40E00000, irq=1
physmap platform flash device: 01000000 at 21000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
erase region 0: offset=0x0,size=0x20000,blocks=128
RedBoot partition parsing not available
uclinux[mtd]: RAM probe address=0x2421d9c8 size=0x230000
Creating 1 MTD partitions on "RAM":
0x00000000-0x00230000 : "ROMfs"
uclinux[mtd]: set ROMfs to be root filesystem index=1
i8042.c: i8042 controller self test timeout.
input: Button Keypad as /class/input/input0
Directional Button & Rotary Encoder Driver
(c) 2007 PetaLogix
TCP cubic registered
NET: Registered protocol family 1
VFS: Mounted root (cramfs filesystem) readonly.
Freeing unused kernel memory: 92k freed
Error -3 while decompressing!
24213493(2081)->27e6f000(4096)
Error -3 while decompressing!
2421018b(2393)->24501000(4096)
Error -3 while decompressing!
24211383(2302)->24503000(4096)
Error -3 while decompressing!
2421503d(2031)->24508000(4096)
Error -3 while decompressing!
24215671(2161)->24527000(4096)
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/