Re: [U-Boot] MPC512x FEC/MII

2011-09-12 Thread Bernhard Kaindl
Hello Kolja, we also get broken output from mii_cmd when the commit which you show below is applied, reverting it helps. Hardware: Our own MPC5121ADS-based board and the MPC5121ADS development board. The commit is titled: mpc512x_fec: Move PHY initialization from probe into init routin This

[U-Boot] [PATCH] net/dns.c: Fix broken endian handling in dns command

2011-10-12 Thread Bernhard Kaindl
From: Bernhard Kaindl The U-Boot dns command only worked in little-endian CPUs so far because it was based on an antique version of the TADNS source which was using a broken macro to read the shorts found in DNS reply messages by shifting the LSB from the message into the CPU's MSB of a

Re: [U-Boot] [PATCH] net/dns.c: Fix broken endian handling in dns command

2011-10-14 Thread Bernhard Kaindl
Am 12.10.2011 23:48, schrieb Mike Frysinger: >> >> Ditch this brain-deadness by just shifting the MSB from the network byte >> stream of the reply message into the right (MSB) location of a short int >> and putting the LSB from the network byte stream as the lower byte of it, >> and we are done wit

[U-Boot] [PATCH] net/dns.c: Fix endian conversion for big-endian in dns command

2011-10-16 Thread Bernhard Kaindl
From: Bernhard Kaindl net/dns.c used endian conversion macros wrongly (shorts in reply were put swapped into CPU, and then ntohs() was used to swap it back, which broke on big-endian). Fix this by using the correct linux conversion macro for reading a unaligned short in network byte order

[U-Boot] [PATCH] powerpc/lib/board.c: Call run_post(POST_ROM) before relocating

2011-10-16 Thread Bernhard Kaindl
From: Bernhard Kaindl The call to run_post(POST_ROM) which can run the POST memory test is currently called too late when gd has already been copied to DRAM. This results in failure to boot Linux after a POST_ROM memory test tested all RAM while gd was already relocated to DRAM due to gd being

[U-Boot] [PATCH] ne2000: Fix broken build of three boards after CONFIG_NET_MULTI drop

2011-10-16 Thread Bernhard Kaindl
rnings in two debug printf calls - Tested using qemu-mips board, - Tested the two renesas / sh boards r7780mp and shmin to compile again, and should work. Signed-off-by: Bernhard Kaindl --- board/qemu-mips/qemu-mips.c |6 ++ board/renesas/r7780mp/r7780mp.c |3 +- board/

Re: [U-Boot] [PATCH] ne2000: Fix broken build of three boards after CONFIG_NET_MULTI drop

2011-10-17 Thread Bernhard Kaindl
Am 16.10.2011 21:39, schrieb Mike Frysinger: > On Sunday 16 October 2011 14:12:57 Bernhard Kaindl wrote: >> ne2000 wasn't converted to CONFIG_NET_MULTI when the non-multi support was >> dropped, so boards using it (qemu-mips, shmin, r7780mp) failed to compile >> for mul

[U-Boot] [PATCH v2] ne2000: Convert to new net-multi model, fixes build of three boards

2011-10-20 Thread Bernhard Kaindl
-clean when "--ignore VOLATILE" is added to .checkpatch.conf, and no warnings introduced in none of the three boards using this driver. Signed-off-by: Bernhard Kaindl --- board/qemu-mips/qemu-mips.c |6 ++ board/renesas/r7780mp/r7780mp.c |3 +- board/shmin/shmin.c