Hi,
this is my u-boot configuration:
U-Boot 1.1.3 (May 5 2006 - 00:38:14)
CPU : Nios-II
SYSID : f7b67000, Thu Apr 21 03:45:55 2005
BOARD : Altera EP-1S40
==> bd
mem start = 0x01000000
mem size = 0x01000000
flash start = 0x00000000
flash size = 0x00800000
flash offset= 0x00000000
sram start = 0x02000000
sram size = 0x00100000
ethaddr = 08:00:3E:26:0A:5B
ip_addr = 192.168.0.62
baudrate = 115200 bps
==>
mem start = 0x01000000
mem size = 0x01000000
flash start = 0x00000000
flash size = 0x00800000
flash offset= 0x00000000
sram start = 0x02000000
sram size = 0x00100000
ethaddr = 08:00:3E:26:0A:5B
ip_addr = 192.168.0.62
baudrate = 115200 bps
==> pri
baudrate=115200
ethaddr=08:00:3e:26:0a:5b
bootdelay=-1
serverip=192.168.0.183
netmask=255.255.252.0
ipaddr=192.168.0.62
gatewayip=192.168.3.1
autostart=yes
loadaddr=1100000
hostname=FC5
bootfile=vmlinux.img
stdin=serial
stdout=serial
stderr=serial
Environment size: 248/65532 bytes
==>
Question: why is my board info printed twice with one bdinfo ?
I used mkimage to convert the /home/MFM/linux-2.6.x/arch/nios2nommu/boot/compressed/vmlinux.bin generated using hippo's buildroot:
* with a gzip compression: gzip --best vmlinux.bin
and:
./mkimage -d vmlinux.bin.gz -A nios2 -O linux -T kernel -n "Welcome to uClinux with MFM" -a 01100000 -e 01100000 -C gzip vmlinux.img
==> tftpboot
Using MAC Address 08:00:3E:26:0A:5B
TFTP from server 192.168.0.183; our IP address is 192.168.0.62
Filename 'vmlinux.img'.
Load address: 0x1100000
Loading:# ################################################################
# ################################################################
# ################################################################
# #############
done
Bytes transferred = 1069702 (105286 hex)
Automatic boot of image at addr 0x01100000 ...
# # Booting image at 01100000 ...
Image Name: Welcome to uClinux with MFM
Image Type: Nios-II Linux Kernel Image (gzip compressed)
Data Size: 1069638 Bytes = 1 MB
Load Address: 01100000
Entry Point: 01100000
Verifying Checksum ... OK
Uncompressing Kernel Image ... Error: inflate() returned -3
GUNZIP ERROR - must RESET board to recover
U-Boot 1.1.3 (May 5 2006 - 00:38:14)
CPU : Nios-II
SYSID : f7b67000, Thu Apr 21 03:45:55 2005
BOARD : Altera EP-1S40
==>
*with a bz2 compression: bzip2 --best vmlinux.bin
and :
./mkimage -d vmlinux.bin.bz2 -A nios2 -O linux -T kernel -n "Welcome to uClinux with MFM" -a 01100000 -e 01100000 -C bzip2 vmlinux.img
==> tftpboot 1100000 vmlinux.img
Using MAC Address 08:00:3E:26:0A:5B
TFTP from server 192.168.0.183; our IP address is 192.168.0.62
Filename 'vmlinux.img'.
Load address: 0x1100000
Loading:# ################################################################
# ################################################################
# ################################################################
done
Bytes transferred = 994728 (f2da8 hex)
Automatic boot of image at addr 0x01100000 ...
# # Booting image at 01100000 ...
Image Name: Welcome to uClinux with MFM
Image Type: Nios-II Linux Kernel Image (bzip2 compressed)
Data Size: 994664 Bytes = 971.4 kB
Load Address: 01100000
Entry Point: 01100000
Verifying Checksum ... OK
Unimplemented compression type 2
==>
* with no compression:
$ ./mkimage -d vmlinux.bin -A nios2 -O linux -T kernel -n "Welcome to uClinux with MFM" -a 01100000 -e 01100000 vmlinux.img
Image Name: Welcome to uClinux with MFM
Created: Wed May 10 00:01:59 2006
Image Type: NIOS II Linux Kernel Image (gzip compressed)
Data Size: 2005944 Bytes = 1958.93 kB = 1.91 MB
Load Address: 0x01100000
Entry Point: 0x01100000
==> tftpboot 1100000 vmlinux.img
Using MAC Address 08:00:3E:26:0A:5B
TFTP from server 192.168.0.183; our IP address is 192.168.0.62
Filename 'vmlinux.img'.
Load address: 0x1100000
Loading: T# ################################################################
# ################################################################
# ################################################################
# ################################################################
# ################################################################
# ################################################################
# #
done
Bytes transferred = 2006008 (1e9bf8 hex)
Automatic boot of image at addr 0x01100000 ...
# # Booting image at 01100000 ...
Image Name: Welcome to uClinux with MFM
Image Type: Nios-II Linux Kernel Image (gzip compressed)
Data Size: 2005944 Bytes = 1.9 MB
Load Address: 01100000
Entry Point: 01100000
Verifying Checksum ... OK
Uncompressing Kernel Image ... Error: Bad gzipped data
GUNZIP ERROR - must RESET board to recover
U-Boot 1.1.3 (May 5 2006 - 00:38:14)
CPU : Nios-II
SYSID : f7b67000, Thu Apr 21 03:45:55 2005
BOARD : Altera EP-1S40
==>
* with the zImage file:
$ ./mkimage -d zImage -A nios2 -O linux -T kernel -n "Welcome to uClinux with MFM" -a 01100000 -e 01100000 vmlinux.img
Image Name: Welcome to uClinux with MFM
Created: Wed May 10 00:07:30 2006
Image Type: NIOS II Linux Kernel Image (gzip compressed)
Data Size: 1096043 Bytes = 1070.35 kB = 1.05 MB
Load Address: 0x01100000
Entry Point: 0x01100000
==> tftpboot 1100000 vmlinux.img
Using MAC Address 08:00:3E:26:0A:5B
TFTP from server 192.168.0.183; our IP address is 192.168.0.62
Filename 'vmlinux.img'.
Load address: 0x1100000
Loading: T# ################################################################
# ################################################################
# ################################################################
# ###################
done
Bytes transferred = 1096107 (10b9ab hex)
Automatic boot of image at addr 0x01100000 ...
# # Booting image at 01100000 ...
Image Name: Welcome to uClinux with MFM
Image Type: Nios-II Linux Kernel Image (gzip compressed)
Data Size: 1096043 Bytes = 1 MB
Load Address: 01100000
Entry Point: 01100000
Verifying Checksum ... OK
Uncompressing Kernel Image ... Error: Bad gzipped data
GUNZIP ERROR - must RESET board to recover
U-Boot 1.1.3 (May 5 2006 - 00:38:14)
CPU : Nios-II
SYSID : f7b67000, Thu Apr 21 03:45:55 2005
BOARD : Altera EP-1S40
==>
Another question: I've set the bootfile and loadaddr variables and saved the environment, I type first time only tftpboot to load the kernel, but the second time I get this
==> tftpboot
Using MAC Address 08:00:3E:26:0A:5B
*** Warning: no boot file name; using 'C0A8003E.img'
TFTP from server 192.168.0.183; our IP address is 192.168.0.62
Filename 'C0A8003E.img'.
Load address: 0x1100000
Loading: *T
TFTP error: 'File not found' (1)
Starting again
and I got to type the full command tftpboot 1100000 vmlinux.img to make it work.
Is there any explanation ?
PS: I'm working with the GtkTerm terminal