Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sandpoint ppc74**
View unanswered posts
View posts from last 24 hours

 
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: Mon Feb 15, 2010 3:19 pm    Post subject: sandpoint ppc74** Reply with quote

hello
I've been working with NetBSD/sandpoint for about 1 year: SandpointX3 is a good ppc platform, it has cpumodule (7400, 7445, 8240), uart, 4pci bus, rtc, etc

about Netbsd Nothing to contribute, but I've been very satisfied with it's functionality, stability and consistency on development phase.

Nowadays, i switched to linux, and gentoo is the best choice if you want to develop apps !

(even if ii could prefer NetBSD for various reseaons. The most important fator was performance in TCP/IP and functionality in IPv6 networking, where linux could sux a bit)

anyway, linux-2.6 has a problem: how to launch it if a ramroofs is included in the kernel binary ?
yeah, the sandpoint firmware is not a bootloader, it's just an hardware monitor that allow you to
* tftp a kernel into ram
* exectute a line (go ram_addr, in my case go 0xf100000)

ok, to execute a linux kernel you need a bootloader, this bootloader has to initialize things and to set "available memory" areas (you can see these details in the included quote)

arch/ppc/boot/simple/misc.c defines a model in where you are assumed to have a kernel decompressed of 8Mb max size ... my ramrootfs-kernel is 12Mb when decompress... so

i hacked arch/ppc/boot/simple/misc.c, and you can now see the kernel is now booting, the ramrootfs is decompressed and attached ... you could thing everything is going well, but ... sometime i got issued and kernel panic ...


or i get

Code:
Oops: kernel access of bad area, sig: 11 [#1]hread]


anybody toying with this board ? anybody with a pretty kernel bootloader for this board ? anybody want's to collaborate ?

let me know =)

Code:

Memory Enabled: [ 128MB at CL=3 ]
Caches Enabled: [ L1I(32K), L1D(32K), L2(256K) ]
Register Inits: [ 32 GPRs, 32 FPRs, 222 SPRs, 32 VPRs ]


                 ##  ##            ##
                 ##  ##            ##
                 ##                ##
            #######  ##  #######   ##    ##
           ##    ##  ##  ##    ##  ##   ##
           ##    ##  ##  ##    ##  ######
           ##    ##  ##  ##    ##  ##   ##
            ######   ##  ##    ##  ##    ##

      (        (    (  ( (AltiVec) )  )    )        )

   Version : 13.1.1, Metaware Build
  Released : May 13, 2003 Built on May 13 2003 13:09:37
Written by : Motorola's RISC Applications Group, Austin, TX
    System : Sandpoint X3 with Gyrus (MPMC7445)
 Processor : MPC7445 V3.4 @ 997 MHz, 133 MHz memory
    Memory : Map B (CHRP) 128MB at CL=3

Copyright Motorola Inc. 1993-2003
Refer to `history.c' for release info, changes, errata and fixes.


DINK32[MPC7445] {1} >>dl -nw -b -of00000 -fgentoo-sandpoint.img
Filename = gentoo-sandpoint.img
File format =  Plain binary 
Offset = 0x00F00000
Received 9895 TFTP data blocks.

Successfully read 5066128 bytes via TFTP at  2083256 bytes/sec


DINK32[MPC7445] {2} >>go f10000
[*] dink32 kernel wrapper simple
load_kernel: decompress_kernel to be hooked into
load_addr  : 00F10000
num_words  : 0013184C
loaded at:     00F10000 013D6130
relocated to:  00F00000 013C6130
zimage at:     00F060F4 013C36FB
initrd at:     013C4000 013C4000
ram:           00000000 08000000
avail ram:     013C7000 02000000
decompress at: 00000000 00F00000

kernel/PPC cmdline="console=ttyS0,9600 rdinit=/sbin/init init=/bin/bash"
Uncompressing kernel...gunzip: arch/ppc/boot/common/misc-common.c
done.
kernel jump
Total memory = 128MB; using 256kB for hash table (at c0640000)
Linux version 2.6.19.2-sandpoint (root@minerva) (gcc version 4.1.2) #53 Mon Feb 15 16:08:23 CET 2010
Motorola SPS Sandpoint Development Platform
Zone PFN ranges:
  DMA             0 ->    32768
  Normal      32768 ->    32768
early_node_map[1] active PFN ranges
    0:        0 ->    32768
Built 1 zonelists.  Total pages: 32512
Kernel command line: console=ttyS0,9600 rdinit=/sbin/init init=/bin/bash
OpenPIC Version 1.2 (1 CPUs and 22 IRQ sources) at fdfd0000
OpenPIC timer frequency is 133.000000 MHz
PID hash table entries: 512 (order: 9, 2048 bytes)
time_init: decrementer frequency = 32.478232 MHz
Console: colour dummy device 80x25
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 123392k available (1812k kernel code, 612k data, 3828k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
PCI: Cannot allocate resource region 1 of device 0000:00:00.0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Generic RTC Driver v1.07
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 4) is a NS16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 3) is a NS16550A
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
e100: Intel(R) PRO/100 Network Driver, 3.5.17-k2-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
8139too Fast Ethernet driver 0.9.28
eth0: RealTek RTL8139 at 0xbffe00, 00:e0:5c:00:29:89, IRQ 21
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
hda: SAMSUNG WNR-31601A (1600MB), ATA DISK drive
ide0 at 0xbffff8-0xbfffff,0xbffff6 on irq 14
hda: max request size: 128KiB
hda: 3145968 sectors (1610 MB) w/256KiB Cache, CHS=3121/16/63
 hda: [mac] hda1 hda2 hda3 hda4
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
rtc-test rtc-test.0: rtc intf: sysfs
rtc-test rtc-test.0: rtc intf: proc
rtc-test rtc-test.0: rtc intf: dev (254:0)
rtc-test rtc-test.0: rtc core: registered test as rtc0
rtc-test rtc-test.1: rtc intf: sysfs
rtc-test rtc-test.1: rtc intf: dev (254:1)
rtc-test rtc-test.1: rtc core: registered test as rtc1
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-test rtc-test.0: setting the system clock to 2010-02-15 04:58:32 (1266209912)
Freeing unused kernel memory: 3828k init
[*] mount
[*] ttykeymaps
/dev/tty0 /dev/tty1 /dev/tty2 /dev/tty3 /dev/tty4 /dev/tty5 /dev/tty6 /dev/tty7
/dev/ttyS0 /dev/ttyS1
[*] clock
[*] machine-identify
[*] hostname
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[*] telnetd
[*] env-shared-libraries
[*] tiniweb
[*] issue
[*] sftp-server
[*] sshd
                                                                             
   e    a    r    l    y     r    a    m    r    o    o    t    f    s       
   Y O U    H A V E    T H E   P O W E R    U S E    C A R E F U L L Y       
   i   n   s   e   r   t      c  o  i  n  s      p   l   e   a   s   e       
                                                                             

                 ,,,,
                $$$$$$
              $$$$$$$$$ 
             $$$$$$$$$$$                                 ,,
             $$$$$$$$$$$$                              $$$$$,
             `$$$$$$$$$$$                            $$$$$$$$
              `$$$$$$$$$Z$      $$$       $$$       $$$$$$$$`
               `$ZzZ$$$Z$$$   $$$$$$$   $$$$$$$    $$$$$$$$`
                `$$$ZZZ$$$$$ $$$$$$$$$ $$$$$$$$$  $$$$$$$$`
                 `$$$$$$$$$$ $$ZZ$$$$$ $$ZZZ$$$$ $$$$$$$$
    u$$$$$$u      `$$$$$$$$$$ $$$ZZZ$$ $$$$$ZZ$$ $$$$$$$`
  $$$$$$$$$$Z$     `$ZZ$$$ZZZ $$$$$$$$ $$$$$$$$$ $$$$$$
 $$$$$$$$$$$Z$$$$  $$$$zzz$$$ $$$$$$$$ $$$$$$$$$ $$$$$$`
 $$$$$$$$$$Z$$$$$$$$$$$$$$$$$ $$ZZ$$$$ $ZZZ$$$$$ $$$$$`
   `$$$$$$$Z$$$$$$$$$$$$$$$$$ $$$$$ZZ$ $ $$$$$$$ $$$$$`
        `$Z$$$$$$$$$$$$$$$$$$ $SB$$$  $$ $$$$$$ $$$$`
          `$$$$$$$$$$$$$$$$$$$,````,$$$$, ````,$$$$`
           `$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$`
             `$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$`
               `$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$`
                  `$$$$$$$$$$$$$$$$ $$$$$$$$$$`
                   `$$$$$$$$$$$$$$$$ $$$$$$$`
                     $$$$$$$$$$$$$$$$$$$$$$
 
             P  o  w  e  r  u  c   m  a  c  h  i  n  e

             genuine interest in the u' n i x platform
             genuine appreciation of solid engineering

sandpoint-7445 login: root
Password:
  M  e  s  s  a  g  e      O  f      T  h  e      D  a  y
  i  n  s  e  r  t     c  o  i  n  s     p  l  e  a  s  e                                             
uc-sandpoint-7445 ~ #

Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Tue Feb 16, 2010 6:25 pm    Post subject: Reply with quote

more progress today (i mean less kernel panics than yesterday =P )
but it really seems we need a pretty bootloader pretty able to initialize the DRAM controller

i god a workarount just toying with my wrapper and with the DINK32
anyway it seems this board is working with 2x64Mb memory layout instead of what reported in the freescale doc (1x128)

the u-Boot has a port for the PPMC8240, that is a 603 core with a lot of integrated features
ok, it seams that port is "quite" similar to PPMC7445, which is the cpu module i am toying with =P
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
Page 1 of 1

 
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