[U-Boot-Users] PPC405GP Walnut with IDE hard disk

2008-05-21 Thread
Howdy, I have a board PPC405GP DHT-Walnut. It has # two pci slots, keyed for 5V only cards # Promise Technologies PDC20265 IDE After attaching an IDE driver to the slot, uboot recognizes it: IDE: Bus 0: OK Device 0: Model: SanDisk SDCFJ-2048 Firm: HDX 4.03 Ser#: 003405D2697E4543

Re: [U-Boot-Users] PPC405GP Walnut with IDE hard disk

2008-05-21 Thread
Haha. I solved the problem. The error is because I set the wrong major/minor device id for /dev/hde. Follow the result given by /proc/partition major minor #blocks name 33 02000880 hde I create nodes /dev/hde, /dev/hde1.2.3.4 by setting majorid=33. This time: # fdisk /dev/hde hde:

Re: [U-Boot-Users] PPC405GP Walnut with IDE hard disk

2008-05-21 Thread
Just now, I recompile kernel with even more IDE drivers. This time it seems recognized my hard disk: Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx PDC20265: IDE controller (0x105a:0x0d30 rev 0x02) at

[U-Boot-Users] newbie: How to avoid memory area overlapping?

2008-05-19 Thread
Howdy, I use uboot + linux kernel + ramdisk to start the board. The kernel and ramdisk (say uImage and Ramdisk) are stored on my PC. Each time, by typing: tftp 20 uImage tftp 60 Ramdisk these two files are loaded to memory. Then enter bootm 20 60 to real boot. Well, I

Re: [U-Boot-Users] How to specify the size of bin?

2008-05-16 Thread
2008/5/16 Wolfgang Denk [EMAIL PROTECTED]: In message [EMAIL PROTECTED] you wrote: 1. Both default config of u-boot and a DHT-Walut-patched config generate 256KB bin, but the flash on board is 512KB. So I think I should get a 512KB bin for flash writing. Why? Do you think on devices with

[U-Boot-Users] How to specify the size of bin?

2008-05-15 Thread
Howdy, I know it is a newbie question. Any hint from you are welcome. In default, u-boot 1.1.5, make walut_config make all will generate a 256KB bin. The last 4 bytes of the bin is a jump instruction to the entry point of u-boot.Is that right? But my ppc405GP walnut board has 512KB flash for

Re: [U-Boot-Users] How to specify the size of bin?

2008-05-15 Thread
2008/5/16 Stefan Roese [EMAIL PROTECTED]: On Friday 16 May 2008, 甜瓜 wrote: I know it is a newbie question. Any hint from you are welcome. In default, u-boot 1.1.5, make walut_config make all will generate a 256KB bin. The last 4 bytes of the bin is a jump instruction to the entry point

[U-Boot-Users] old code compiled with new gcc. error: lvalue required

2008-05-14 Thread
Howdy, I want to compile ppcboot 1.1.6 by ELDK 4.1. Well, ppcboot is very ancient code, but for some reason, I have to compile it. There are many exact same compile-time errors reported: error: lvalue required as increment/decrement operand. xsum += *((ushort *)ptr)++; *((ulong

Re: [U-Boot-Users] [uboot] Walnut PPC405GP flash

2008-04-21 Thread
Yep! The ppcboot is very ancient. hehe. Actually, my board is DHT-walnut: http://elinux.org/DHT-Walnut_U_Boot The web provides a pre-compiled bin uboot 1.1.4 for my board. The size is 256KB. I downloaded it, and burn this bin into flash. But the board is still not work. Well, you point out a very

[U-Boot-Users] [uboot] Walnut PPC405GP flash

2008-04-20 Thread
Howdy, I'm a beginner of embedded system. I'm working on a board of Walnut PPC405GP which use PPCBOOT 1.1.2. One day I tried to write some data into unused area of the flash: fli Bank # 1: AMD AM29F040 (512 Kbit, uniform sector size) Size: 512 KB in 8 Sectors Sector Start Addresses: