Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo on IBM PowerPC 405GP based Walnut evaluation board
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sun Feb 18, 2007 11:52 pm    Post subject: gentoo on IBM PowerPC 405GP based Walnut evaluation board Reply with quote

i'd like gentoo, i googled and i realized that netbsd is known to be supporting my board (Walnut-405GP) :

"NetBSD/evbppc is a port of NetBSD to PowerPC based evaluation board. At the
present time, the IBM PowerPC 405GP based walnut evaluation board is the only
board supported by this port."


about it:

(1) The built-in Ethernet card is not supported, so another PCI Ethernet card supported by NetBSD must be provided if you want to use NetBSD/evbppc on a network. Any PCI Ethernet card supported by NetBSD should work.

does linux support the built-in Ethernet card ?



(2) The built-in IDE controller is "Promise Ultra66 (pciide)", other PCI IDE controllers should work, but there are no reports. Most IDE disk/CD-ROM/ATAPI devices should work.

does linux support the buil-in IDE controller ?



uboot is the boot loader installed in the board flash (http://sourceforge.net/projects/u-boot)
it uses UART-RS232 as concole, and it is able to load a kernel from the lan, putting it into the memory (PC100 32Mb)

so you could

-1- downlad a kernel into ram: "tftpboot ram-boot-address kernel"
-2- boot the kernel stored in ram: "bootm ram-boot-address"


i'd like to plug an hard disk, and to install gentoo to this board booting from the hard-disk


is anyone working with this board ?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Feb 19, 2007 1:14 am    Post subject: Reply with quote

I picked up one of these last year, fun to play with. :)

My instructions for getting it working are here, but haven't really been updated to reflect the new installation media that's been released since:
http://dev.gentoo.org/~josejx/405gp/

Everything on the board works fine though. I've got a sound card plugged into mine, boots off of a 128Mb Compact flash which holds the root filesystem. It pulls MP3s off of my NFS share on my Mac and plays them over my stereo. :)

Works great!
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Mon Feb 19, 2007 11:59 pm    Post subject: Reply with quote

very wel, so the ata controller is supported, i will try to install gentoo on it

but ... i bought this board "nude", without documentation, cd &C, only the board with uboot installed ($100-USA)

i really don't understand
1) if there is an ufficial documentation
2) if there is an ufficial support
3) what was the goal of this board ( expecially this point ... :roll: )

if you have time, could i see the updated documentation of your work with this board ?

thank you a lot for your answare :)
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Feb 20, 2007 1:22 am    Post subject: Reply with quote

I haven't touched it since I set it up. It just runs. The reason why the kernel supports it is because someone took the time to add support for the board. There are quite a few of these around, but there is no real documentation. There are no "complete" boards, but the usual configuration is a 405gp with a FireWire card and 32Mb of ram. As far as I know, the board was designed as part of a home entertainment system component, but the project was never released. There are headers on the board for a real time clock and an audio chip, but I haven't seen one with these components attached. There is some more information about this board on elinux: http://www.elinux.org/wiki/DHT-Walnut
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Tue Feb 20, 2007 10:58 pm    Post subject: Reply with quote

i have found this

Quote:
While shopping at Tanner Electronics in December 2005, some friends and I came across the board show above. For about $15, we got a board stuffed with a PowerPC 405GP processor, 2 PCI slots, IDE controller, Ethernet, a PCI Firewire card, and a 32MB DIMM, but with no other information. The board has a copyright statement on the silkscreen between the PCI connector and the flash chip, just above the power jack, stating: "Copyright 2002 Digital Home Technologies, PCB 01070201, Rev 1.1, DMM." Digging around google came up with very little information about the company, and even less about the board. Their website appears to be dead (as of Dec 28, 2005), however a google cache of it revealed a bit of information about the product that presumably this device came from.


this board is an "xfile" :roll:

(specially the price, $15 the quote-guy payed vs $100 i payed for the same board ;) )
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sun Feb 25, 2007 9:14 pm    Post subject: Reply with quote

hello,
how to save the PPCBoot.1.1.2 envirinment-vars ?
saveenv doesn't really save nothing ...

i need to set ethaddr, bootargs
could you help ?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Feb 26, 2007 2:23 pm    Post subject: Reply with quote

You need to upgrade the bootloader as shown in the link I posted above in order to save nvram values:
http://www.elinux.org/wiki/DHT-WalnutInstallingTheUpdatedBootloader
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Tue Feb 27, 2007 2:59 pm    Post subject: Reply with quote

hi,
thank you, i installed U-Boot 1.1.4 and i fixed the saveenv problem :)


now, with a powerpc-ppc750(G3) machine, i'm native-compiling for walnut-ppc405

i used gentoo portage and stage3-generic-ppc, and linux-2.5.15 + uboot/mkuImage tool to genereate uImage kernel version (the bootstrap u-boot wants this format)

i configured the Makefile with walnut board setting, ppc40x, and all i read about this board support


well, i'm stopped by this problem


Code:
 * Setting system clock using the hardware clock [UTC] ...
 * Timed out waiting for time change.Timed out waiting for time change.
 * Failed to set system clock to hardware clock [ !! ]
 * Failed to start /etc/init.d/clock
 * One or more critical startup scripts failed to start!
 * Please correct this, and reboot ...



it seems RTC driver is not well working (i can't set the hw time)


also there is something bad in /dev
Code:
 * Seeding /dev with needed nodes ...cp: cannot create special file `/dev/console': File exists
cp: cannot create special file `/dev/null': File exists
cp: cannot create special file `/dev/zero': File exists


may be the problem with /dev/rtc ?




here the full console dump
Code:
U-Boot 1.1.4 (Feb 16 2006 - 17:15:06)

CPU:   AMCC PowerPC 405GP Rev. E at 266.640 MHz (PLB=66, OPB=33, EBC=33 MHz)
       Internal PCI arbiter enabled, PCI async ext clock used
       16 kB I-Cache 8 kB D-Cache
Board: DHT Walnut
I2C:   ready
DRAM:  32 MB
FLASH: 512 kB
PCI:   Bus Dev VenId DevId Class Int
        00  04  105a  0d30  0101  1d
In:    serial
Out:   serial
Err:   serial
Net:   ppc_4xx_eth0
IDE:   Bus 0: ....OK
  Device 0: Model: QUANTUM FIREBALL EX3.2A Firm: A0A.0300 Ser#: 673827332338
            Type: Hard Disk
            Capacity: 3079.1 MB = 3.0 GB (6306048 x 512)
  Device 1: not available
BEDBUG:ready
"ide.part.1th stores kernel rawimage"
=> printenv
bootcmd=run net_nfs
bootdelay=5
loads_echo=1
netdev=eth0
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath}
ramargs=setenv bootargs root=/dev/ram rw
addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off panic=1
addtty=setenv bootargs ${bootargs} console=ttyS0,${baudrate}
flash_nfs=run nfsargs addip addtty;bootm ${kernel_addr}
flash_self=run ramargs addip addtty;bootm ${kernel_addr} ${ramdisk_addr}
net_nfs=tftp 200000 ${bootfile};run nfsargs addip addtty;bootm
rootpath=/opt/eldk/ppc_4xx
bootfile=/tftpboot/walnut/uImage
kernel_addr=fff80000
ramdisk_addr=fff80000
load=tftp 100000 /tftpboot/walnut/u-boot.bin
update=protect off fffc0000 ffffffff;era fffc0000 ffffffff;cp.b 100000 fffc0000 40000;setenv filesize;saveenv
upd=run load;run update
ethact=ppc_4xx_eth0
hostname=walnut-ppc405
serverip=192.168.0.15
ipaddr=192.168.0.4
ethaddr=DE:AD:BE:EF:DE:AD
baudrate=9600
preboot=echo "ide.part.1th stores kernel rawimage"
gatewayip=192.168.0.1
netmask=255.255.255.0
bootargs=console=ttyS0,9600 root=/dev/hda4
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 1.1.4 (Feb 16 2006 - 17:15:06)

=> tftpboot 1000000 uImage-my
Using ppc_4xx_eth0 device
TFTP from server 192.168.0.15; our IP address is 192.168.0.4
Filename 'uImage-my'.
Load address: 0x1000000
Loading: done
Bytes transferred = 1504684 (16f5ac hex)
=> bootm
## Booting image at 01000000 ...
   Image Name:   Linux-2.6.15-gentoo-snow-leopard
   Created:      2007-02-27  13:30:45 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1504620 Bytes =  1.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Linux version 2.6.15-gentoo-snow-leopard-ibm-walnut-ppc405 (root@alice) (gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)) #3 Tue Feb 27 13:30:20 GMT 2007
IBM Walnut port (C) 2000-2002 MontaVista Software, Inc. (source@mvista.com)
Built 1 zonelists
Kernel command line: console=ttyS0,9600 root=/dev/hda4
PID hash table entries: 256 (order: 8, 4096 bytes)
Warning: real time clock seems stuck!
Console: colour dummy device 80x25
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 29236k available (2292k kernel code, 736k data, 144k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
PCI: Cannot allocate resource region 4 of device 0000:00:04.0
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
Generic RTC Driver v1.07
Macintosh non-volatile memory driver v1.1
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 0) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 1) is a 16550A
mice: PS/2 mouse device common for all mice
loop: loaded (max 8 devices)
PPC 4xx OCP EMAC driver, version 3.54
mal0: initialized, 1 TX channels, 1 RX channels
eth0: emac0, MAC de:ad:be:ef:de:ad
eth0: found Generic MII PHY (0x09)
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 at PCI slot 0000:00:04.0
PDC20265: chipset revision 2
PDC20265: not 100% native mode: will probe irqs later
PDC20265: (U)DMA Burst Bit DISABLED Primary PCI Mode Secondary PCI Mode.
    ide0: BM-DMA at 0x1000-0x1007, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0x1008-0x100f, BIOS settings: hdc:pio, hdd:DMA
hda: QUANTUM FIREBALL EX3.2A, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 31
hda: max request size: 128KiB
hda: 6306048 sectors (3228 MB) w/418KiB Cache, CHS=6256/16/63, UDMA(33)
hda: cache flushes not supported
 hda: hda1 hda2 hda3 hda4
video1394: Installed video1394 module
ieee1394: raw1394: /dev/raw1394 device initialized
sbp2: $Rev: 1306 $ Ben Collins <bcollins@debian.org>
ieee1394: sbp2: Driver forced to serialize I/O (serialize_io=1)
ieee1394: sbp2: Try serialize_io=0 for better performance
ieee1394: Loaded AMDTP driver
ieee1394: Loaded CMP driver
usbmon: debugfs is not available
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
pegasus: v0.6.12 (2005/01/13), Pegasus/Pegasus II USB Ethernet driver
usbcore: registered new driver pegasus
usbcore: registered new driver asix
usbcore: registered new driver cdc_ether
I2O subsystem v1.288
i2o: max drivers = 8
I2O Configuration OSM v1.248
I2O Bus Adapter OSM v$Rev$
I2O ProcFS OSM v1.145
i2c /dev entries driver
IBM IIC driver v2.1
ibm-iic0: using standard (100 kHz) mode
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 144k init
INIT: version 2.86 booting

Gentoo Linux; http://www.gentoo.org/
 Copyright 1999-2006 Gentoo Foundation; Distributed under the GPLv2

Press I to enter interactive boot mode

 * Mounting proc at /proc ...  [ ok ]
 * Mounting sysfs at /sys ...  [ ok ]
 * Mounting /dev for udev ... [ ok ]
 * Populating /dev with saved device nodes ... [ ok ]
 * Seeding /dev with needed nodes ...cp: cannot create special file `/dev/console': File exists
cp: cannot create special file `/dev/null': File exists
cp: cannot create special file `/dev/zero': File exists
                                     [ ok ]
 * Setting up proper hotplug agent ...  [ ok ]
 * Starting udevd ... [ ok ]
 * Populating /dev with existing devices through uevents ...   [ ok ]
 * Letting udev process events ...   [ ok ]
 * Finalizing udev configuration ...    [ ok ]
 * Mounting devpts at /dev/pts ...  [ ok ]
 * Checking root filesystem...   [ ok ]
 * Remounting root filesystem read/write ...  [ ok ]
 * Checking all filesystems .../boot: clean .. [ ok ]
 * Mounting local filesystems ...  [ ok ]
 * Mounting USB device filesystem (usbfs) ...  [ ok ]
 * Activating (possible) swap ... [ ok ]
 * Setting system clock using the hardware clock [UTC] ...
 * Timed out waiting for time change.Timed out waiting for time change.
 * Failed to set system clock to hardware clock [ !! ]
 * Failed to start /etc/init.d/clock
 * One or more critical startup scripts failed to start!
 * Please correct this, and reboot ...


Give root password for maintenance
(or type Control-D to continue):
(none) ~ # reboot
INIT: Switching to runlevel: 6INIT: Sending p
 * Deactivating swap ...  [ ok ]
 * Unmounting filesystems ...  [ ok ]
 * Remounting remaining filesystems readonly ...  [ ok ]
Restarting system.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Feb 27, 2007 3:46 pm    Post subject: Reply with quote

The hardware clock issue should be fixed in newer baselayout versions, what version did you install?

I used baselayout-lite instead of baselayout since I didn't want or need a full Gentoo install on mine.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Tue Feb 27, 2007 7:01 pm    Post subject: Reply with quote

JoseJX wrote:
The hardware clock issue should be fixed in newer baselayout versions, what version did you install?

I used baselayout-lite instead of baselayout since I didn't want or need a full Gentoo install on mine.


i have the RTC problem in linux 2.6.15-4

enabling I2C support (i don't exactly know if the RTC is an I2C chip) and /dev/RTC emulation via the kernel menuconfig (or manually editing the Makefile)



i solved the /dev/null and /dev/console problem editing /etc/conf.d/rc
setting RC_DEVICES to "static" (/dev/*)



what do you know about the RTC chip ?
u-boot is not able to andle the date/time (it says 0/0/00 0:00:0)
is it an I2C chip ? if not, what is it ?

how could i disable the init process to skip the clock check ?
rc-update del clock boot is not enought ....


regards



p.s.
what is the situation of RTC support in 2.6.16 ?
(i've seen 2.6.16-pre3 post, i've not tested it)
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Feb 27, 2007 7:21 pm    Post subject: Reply with quote

There is no RTC on the walnut. You can see the place where it would go, it's marked with a circular marking.

You didn't answer which version of baselayout you're using.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Wed Feb 28, 2007 10:34 am    Post subject: Reply with quote

JoseJX wrote:
There is no RTC on the walnut. You can see the place where it would go, it's marked with a circular marking.


gosh :(

do you know about the RTC chip would be placed where "it's marked with a circular marking" ? i could buy and solder it

elseway if there is an I2C port on this board, i would add a I2C-RTC chip (handled by the I2C kernel support)

are there any schematic of the walnut board ?

the GPIO-port "may be" a good solution to add a physical I2C bus .... (a but to be plugged by a I2C devices, such as I2C-RTC, and I2C-display ... for example)


Quote:
You didn't answer which version of baselayout you're using.

about baselayout and init scripts

i downloaded the gentoo stage3-ppc and the last portage-2006, i installed them.

now, i made a special /etc/init.d/clock: at the boot time it only sets system-time to the last boot-up system time (lastbootupdate='getmylastbootupdate'; date $lastbootupdate)

in the default-stage i made a special /etc/init.d/clock2 for rc-update: it invokes rdate do set date to the current values


it is not the best, bur i don't have other ideas to solve time coerency, and to make my gentoo well working

:)


well, the best would be to add a real HW-RTC chip to set the time without an internet conncecion (rdate service)
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Wed Feb 28, 2007 12:52 pm    Post subject: Reply with quote

hi,
googling i've found that DENIX has a kit called "ELDK", that is an Embedded Linux Environment (probably made in 2001)

http://www.denx.de/wiki/view/DULG/Manual?stickboard=walnut
(there is also a mini u-boot manual)

from a bootstrap-screengrab, i've noted this

Code:
Configuringkernel parameters:  [  OK  ]
Cannot access the Hardware Clock via anyknown method.
Use the --debug option to see the details of our search for an access method.
Setting clock : Fri Oct 22 03:48:00 EDT 2021 [  OK  ]



so i think the walnut was build thinking about net-bootstrap, and net date setting


here it is the all boostrap-screendump

Code:
Linux version 2.4.4-rthal5 (seb@mst26) (gcc version 2.95.4 20010319 (prerelease/franzo/20011204)) #8 Wed Jun 25 16:28:38 BST 2003
I2C uCode patch installed
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/nfs rw nfsroot=192.168.10.1:/eldk/ppc_8xx ip=192.168.10.99:192.168.10.1:192.168.10.1:255.255.255.0:vmu::off panic=1
Decrementer Frequency: 3125000
Calibrating delay loop... 49.86 BogoMIPS
Memory: 14568k available (1020kkernel code, 428k data, 56k init, 0k highmem)
Dentry-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 1024 (order: 1, 8192 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Startingkswapd v1.8
CPM UART driver version 0.03
ttyS0 on SMC1 at 0x0280, BRG1
pty: 256 Unix98 ptys configured
Found 2x16bit 4MByte CFI flash device of type AMD/Fujitsu standard at 40000000
Registered flash device /dev/flasha (minor 0, 4 partitions)
Found 2x16bit 4MByte CFI flash device of type AMD/Fujitsu standard at 40400000
Registered flash device /dev/flashb (minor 8, 2 partitions)
block: queued sectors max/low 9586kB/3195kB, 64 slots per queue
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
eth0: CPM ENET Version 0.2 on SCC2, 00:d0:93:00:c0:a4
CPM load tracking driver $Revision: 1.0 $
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 1024)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Looking up port of RPC 100003/2 on 192.168.10.1
Looking up port of RPC 100005/2 on 192.168.10.1
VFS: Mounted root (nfs filesystem).
Freeing unusedkernel memory: 56k init
modprobe: modprobe: Can't locate module char-major-4
INIT: version 2.78 booting
                Welcome to DENX Embedded Linux Environment
                Press 'I' to enter interactive startup.
Mounting proc filesystem:  [  OK  ]
Configuringkernel parameters:  [  OK  ]
Cannot access the Hardware Clock via anyknown method.
Use the --debug option to see the details of our search for an access method.
Setting clock : Fri Oct 22 03:48:00 EDT 2021 [  OK  ]
Activating swap partitions:  [  OK  ]
Setting hostname vmu:  [  OK  ]
Finding module dependencies:  [  OK  ]
Checking filesystems[  OK  ]
Mounting local filesystems:  [  OK  ]
Enabling swap space:  [  OK  ]
INIT: Entering runlevel: 3
Entering non-interactive startup
Starting system logger: [  OK  ]
Startingkernel logger:kernel:klogd 1.4.1, log source = /proc/kmsg started.

- Linux version 2.4.4-rthal5 (seb@mst26)
  (gcc version 2.95.4 20010319   (prerelease/franzo/20011204))
- I2C uCode patch installed
- On node 0 totalpages: 4096
- zone(0): 4096 pages.
- zone(1): 0 pages.
- zone(2): 0 pages.
- kernel command line: root=/dev/nfs rw nfsroot=192.168.10.1:/eldk/ppc_8xx
  ip=192.168.10.99:192.168.10.1:192.168.10.1:255.255.255.0:vmu::off panic=1
- Decrementer Frequency: 3125000
- Calibrating delay loop... 49.86 BogoMIPS
- Memory: 14568k available (1020kkernel code, 428k data, 56k init, 0k highmem)
- Dentry-cache hash table entries: 2048 (order: 2, 16384 bytes)
- Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
- Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
- Inode-cache hash table entries: 1024 (order: 1, 8192 bytes)
- POSIX conformance testing by UNIFIX
- Linux NET4.0 for Linux 2.4
- Based upon Swansea University Computer Society NET3.039
- Startingkswapd v1.8
- CPM UART driver version 0.03
- ttyS0 on SMC1 at 0x0280, BRG1
- pty: 256 Unix98 ptys configured
- Found 2x16bit 4MByte CFI flash device of type AMD/Fujitsu standard at 40000000
- Registered flash device /dev/flasha (minor 0, 4 partitions)
- Found 2x16bit 4MByte CFI flash device of type AMD/Fujitsu standard at 40400000
- Registered flash device /dev/flashb (minor 8, 2 partitions)
- block: queued sectors max/low 9586kB/3195kB, 64 slots per queue- RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
- Uniform Multi-Platform E-IDE driver Revision: 6.31
- ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
- eth0: CPM ENET Version 0.2 on SCC2, 00:d0:93:00:c0:a4
- CPM load tracking driver $Revision: 1.0 $
- NET4: Linux TCP/IP 1.0 for NET4.0
- IP Protocols: ICMP, UDP, TCP
- IP: routing cache hash table of 512 buckets, 4Kbytes
- TCP: Hash tables configured (established 1024 bind 1024)
- NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
- Looking up port of RPC 100003/2 on 192.168.10.1
- Looking up port of RPC 100005/2 on 192.168.10.1
- VFS: Mounted root (nfs filesystem).
- Freeing unusedkernel memory: 56k init
 
vmu login:
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Feb 28, 2007 1:38 pm    Post subject: Reply with quote

Quote:

do you know about the RTC chip would be placed where "it's marked with a circular marking" ? i could buy and solder it


No idea. I just set the system clock using ntp.

Since you just installed the release versions of baselayout, you still have the clock issue. Newer versions have a fixed init script that dies not fail with a broken clock.

If you want a decent clock value on boot, use ntp.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Wed Feb 28, 2007 10:25 pm    Post subject: Reply with quote

ntp, rdate, ecc

yes, they are good to setup the system-time using a time-server on internet, but DHT-Walnut board must have internet access in order to use this solution, and it is not my case: the walnut will be used without the internet access


.... it seems we have 4 solutions

1) using an embedded extra cheap board with ethernet and RTC (on ebay a 8051+eth board is $40), + mini ethernet hub ($20 ?) to connect them

2) using an embedded extra cheap board with UART-RS232 and RTC (PIC + RTC is $10). This means adding (an UART display $15 and) UART-RTC on the walnut UART port (ttyS0,9600bps)

3) using the walnut GPIO port to implement i2c bus, then adding a i2c-RTC clock ($5)

4) to search walnut schematics, to understand what is missing RTC chip ($2), buy it, solder it, add the kernel support




(1) and (2) don't reguire kenel support, they require specific project handling (such as 8051, pic programming. .... and yes, also specific board assembling, and soldering)

(3) and (4) require kernel support, so specific linux kernel modules programming
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Fri Mar 02, 2007 6:46 pm    Post subject: Reply with quote

dmesg | grep i2c


Code:

i2c /dev entries driver
IBM i2c driver v2.1
ibm-i2c0: using standard (100 kHz) mode


Last edited by ddc on Fri Mar 02, 2007 8:16 pm; edited 2 times in total
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Fri Mar 02, 2007 7:47 pm    Post subject: Reply with quote

about ppc405 and i2c

Code:
Adapter drivers
---------------

i2c-adap-ibm_ocp: IBM 4xx processor I2C device (uses i2c-algo-ibm_ocp)
.                           (NOT BUILT BY DEFAULT)





what about the i2c-adap-ibm_ocp ?
in kernel driver/i2c i've found this

Code:
*
 * drivers/i2c/i2c-ibm_iic.c
 *
 * Support for the IIC peripheral on IBM PPC 4xx
 *
 * Copyright (c) 2003, 2004 Zultys Technologies.
 * Eugene Surovegin <eugene.surovegin@zultys.com> or <ebs@ebshome.net>
 *
 * Based on original work by
 *    Ian DaSilva  <idasilva@mvista.com>
 *      Armin Kuster <akuster@mvista.com>
 *    Matt Porter  <mporter@mvista.com>
 *
 *      Copyright 2000-2003 MontaVista Software Inc.
 *
 * Original driver version was highly leveraged from i2c-elektor.c
 *
 *      Copyright 1995-97 Simon G. Vogl
 *                1998-99 Hans Berglund
 *
 *      With some changes from Kyösti Mälkki <kmalkki@cc.hut.fi>
 *   and even Frodo Looijaard <frodol@dds.nl>
 *
 * This program is free software; you can redistribute  it and/or modify it
 * under  the terms of  the GNU General  Public License as published by the
 * Free Software Foundation;  either version 2 of the  License, or (at your
 * option) any later version.
 *
 */



i know i2c is implemented inside the ppc405 cpu, but i don't understand if/where is has been implemented on the walnut board .......

in the kernel-driver i see
(*) i2c-chip-support ... maxim/dallas DS1374 Real Time Clock
(*) i2c-hw-bus-support ... ibm 4xx on chip i2c interface

it is good ....
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Mon Mar 05, 2007 4:40 pm    Post subject: Reply with quote

following the link posted i see "linux-2.6.16-pre3"

but linux-2.6.16 is not compiling with this configuration: there are a lot of file missing !

Code:
In file included from include/asm-ppc/io.h:29,
                 from include/asm/io.h:13,
                 from arch/powerpc/kernel/asm-offsets.c:33:
arch/powerpc/include/asm/ibm4xx.h:47:34: platforms/4xx/walnut.h: No such file or directory
In file included from include/asm-ppc/io.h:29,
                 from include/asm/io.h:13,
                 from arch/powerpc/kernel/asm-offsets.c:33:
arch/powerpc/include/asm/ibm4xx.h:61: error: syntax error before "__res"
arch/powerpc/include/asm/ibm4xx.h:61: warning: type defaults to `int' in declaration of `__res'
arch/powerpc/include/asm/ibm4xx.h:61: warning: data definition has no type or storage class
make[1]: *** [arch/powerpc/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2


does somebody use a patched one ?
if so, could you send me a copy or tell what to modify ?

2.6.15 is well compiling, i'm testing it:
it works with matroxfb
it doesn't work with ALS4000 alsa sound card
it doesn't work with Creative/Ensoniq ES1371 alsa sound card


i will test a creative SB live/audigy sooner or later ;)



does somebody test a working sound card ?
is so, could you post dettails ? (sound card name, alsa conf, linux ver, linux patches, ecc)

thank you
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Mar 06, 2007 2:03 pm    Post subject: Reply with quote

I would try a more recent kernel, 2.6.14-2.6.16 all have issues due to the ARCH=ppc -> ARCH=powerpc transition.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Tue Mar 06, 2007 2:47 pm    Post subject: Reply with quote

JoseJX wrote:
I would try a more recent kernel, 2.6.14-2.6.16 all have issues due to the ARCH=ppc -> ARCH=powerpc transition.



2.6.15-r4 is working with patches, i can provide you the .config and the patches
the alsa is not really working

2.6.12 .... gosh, i recompiled it yesterday, it boots, it says "console .....", then it stops
i will be happy if you send me the .config and the right patches

2.6.16 is interesting because there are ppc405-GPIO pathes !!!

i'd like to integrate them to the only working kernel i have: the 2.6.15-r4-patched


Last edited by ddc on Wed Mar 07, 2007 11:15 am; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Mar 06, 2007 3:01 pm    Post subject: Reply with quote

Try a *newer* kernel. Say, 2.6.19 or 2.6.20? 2.6.12 will not work since the walnut patches for this board (DHT) weren't included in that kernel.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Tue Mar 06, 2007 7:21 pm    Post subject: Reply with quote

hi,
i can try the 2.6.19, but what have i to do ? i will emerge gentoo-sources, that are kernel sources patched for apple-ppc, not exactly for the walnut

i've found a specific patch for 2.6.15, and i use it

where to find patches for 2.6.19 ?



p.s.
what kernel version are you using ?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Mar 06, 2007 7:45 pm    Post subject: Reply with quote

The patches have been included since at least 2.6.15. You should not need to patch the kernel at all. The Gentoo kernels are not patched for Apple PPC, we maintain no such thing. They are vanilla kernels with patches for the squashfs filesystem and other Gentoo requirements.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Tue Mar 06, 2007 8:45 pm    Post subject: Reply with quote

linux-2.6.18.3

emerge gentoo-sources
make menuconfig
make

Code:
In file included from include/asm-ppc/io.h:28,
                 from include/asm/io.h:16,
                 from include/asm-ppc/pgtable.h:14,
                 from include/asm/pgtable.h:6,
                 from include/linux/mm.h:38,
                 from include/linux/mman.h:14,
                 from arch/powerpc/kernel/asm-offsets.c:22:
arch/powerpc/include/asm/ibm4xx.h:46:34: platforms/4xx/walnut.h: No such file or directory
In file included from include/asm-ppc/io.h:28,
                 from include/asm/io.h:16,
                 from include/asm-ppc/pgtable.h:14,
                 from include/asm/pgtable.h:6,
                 from include/linux/mm.h:38,
                 from include/linux/mman.h:14,
                 from arch/powerpc/kernel/asm-offsets.c:22:
arch/powerpc/include/asm/ibm4xx.h:64: error: syntax error before "__res"
arch/powerpc/include/asm/ibm4xx.h:64: warning: type defaults to `int' in declaration of `__res'
arch/powerpc/include/asm/ibm4xx.h:64: warning: data definition has no type or storage class
make[1]: *** [arch/powerpc/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2



as you can see, there are files missing ....
.... incredible, the only one working is the 2.6.15.4




what linux version are you using with your sound card ?
and what is the name of this sound card ?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Mar 07, 2007 2:48 am    Post subject: Reply with quote

As the config shows (at the beginning of the thread), I used 2.6.15. I only set it up once when I bought the board, I haven't touched it since because it's still just working. It has an ens1370 (Soundblaster Live!, but not emu10k). I looked at the issue with building on a modern kernel and it will require some work to get it building. I'll look into it and let you know.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum