[ELDK] linux-2.6.24 on mpc8xx

Stefano Babic sbabic at denx.de
Wed Mar 3 10:24:25 CET 2010


Vishwanath Patil wrote:
> Hello stefano,
> 
> I have got the new version linux-2.6.33 from the git repository
> and noticed that there is no arch/ppc directory as u mentioned
> compiled the kernel

Yes, ppc is history.

> noticed that the dtc in scripts/dtc is more intelligent than what i had
> it takes the numbers converts to hexadecimal automatically
> got the dtb file after using it
> now the new dump is as follows
> 
> U-Boot 1.3.2 (Feb 21 2010 - 15:49:30) B2
> 
> CPU:   MPC852TxxZPnnA at 66 MHz: 4 kB I-Cache 4 kB D-Cachebrgc1 set to 1008e
> OR0 : fe000ff6
> BR0 : 40000801
> OR1 : 0
> BR1 : 0
> OR2 : f8000800
> BR2 : c0
> OR3 : 0
> BR3 : 0
> OR4 : 0
> BR4 : 0
> OR5 : 0
> BR5 : 0
> OR6 : 0
> BR6 : 4000000
> OR7 : 0
> BR7 : 0
> SCCR : 2020000
> PLPRCR : 125d5000
> RSR : c0000000
> SMCMR : ff002e48
> SMCE : ff002e58
> SMCM : ff002e68
> cp_simode set to 0
>  FEC present
> <unknown> S/N <unknown>
> CPU at 66 MHz, local bus at 33 MHz
> DRAM:  128 MB
> Top of RAM usable for U-Boot at: 08000000
> Reserving 271k for U-Boot at: 07fbc000
> Reserving 132k for malloc() at: 07f9b000
> Reserving 60 Bytes for Board Info at: 07f9afc4
> Reserving 56 Bytes for Global Data at: 07f9af8c
> Stack Pointer at: 07f9af7c
> Stack Pointer at: 07f9af70
> Stack Pointer at: 07f9af68
> relocating the code
> Now running in RAM - U-Boot at: 07fbc000
> FLASH: In:    serial
> Out:   serial
> Err:   serial
> U-Boot relocated to 07fbc000
> Net:   FEC ETHERNET
> BEDBUG:ready
> 
> 
> Hit any key to stop autoboot:  0
> B2> tftp 0xa00000 uImage-2.6
> Using FEC ETHERNET device
> TFTP from server 192.168.53.13; our IP address is 192.168.53.112
> Filename 'uImage-2.6'.
> Load address: 0xa00000
> Loading: #################################################################
>          ###################################################
> done
> Bytes transferred = 1689919 (19c93f hex)
> 
> Abort commented eth_halt
> B2> tftp 0xc00000 test8.UBoot
> Using FEC ETHERNET device
> TFTP from server 192.168.53.13; our IP address is 192.168.53.112
> Filename 'test8.UBoot'.
> Load address: 0xc00000
> Loading: #################################################################
>          #######################################################
> done
> Bytes transferred = 1750328 (1ab538 hex)
> 
> Abort commented eth_halt
> B2> tftp 0xe00000 mpc852t.dtb
> Using FEC ETHERNET device
> TFTP from server 192.168.53.13; our IP address is 192.168.53.112
> Filename 'mpc852t.dtb'.
> Load address: 0xe00000
> Loading: #
> done
> Bytes transferred = 7406 (1cee hex)
> 
> Abort commented eth_halt
> B2> bootm 0xa00000 0xc00000 0xe00000
> ## Booting image at 00a00000 ...
>    Image Name:   Linux-2.6.33
>    Image Type:   PowerPC Linux Kernel Image (gzip compressed)
>    Data Size:    1689855 Bytes =  1.6 MB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... OK
>    Uncompressing Kernel Image ... OK
> ## Current stack ends at 0x07F9ACD0 => set upper limit to 0x00800000
> ## cmdline at 0x007FFF00 ... 0x007FFF14
> memstart    = 0x00000000
> memsize     = 0x08000000
> flashstart  = 0x40000000
> flashsize   = 0x00800000
> flashoffset = 0x00000000
> sramstart   = 0x00000000
> sramsize    = 0x00000000
> immr_base   = 0xFF000000
> bootflags   = 0x00000001
> intfreq     =     66 MHz
> busfreq     =     33 MHz
> ethaddr     = 00:00:00:00:00:02
> IP addr     = 192.168.53.112
> baudrate    =  57600 bps
> Not skipping initrd
> ## Loading RAMDisk Image at 00c00000 ...
>    Image Name:   RamdiskImage
>    Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
>    Data Size:    1750264 Bytes =  1.7 MB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... OK
>    Booting using the fdt at 0xe00000
> ## initrd at 0x00C00040 ... 0x00DAB537 (len=1750264=0x1AB4F8)
>    Loading Ramdisk to 07dee000, end 07f994f8 ... OK
> ## device tree at 0x00E00000 ... 0x00E01CED (len=7406=0x1CEE)
>    Loading Device Tree to 007fe000, end 007ffced ... OK
> ## Transferring control to Linux (at address 00000000) ...
> 
> the dts file is as follows

You have a mixed file for MPC885 and MPC852. That is not correct.

Try to start from another DTS file, for example mgsuvd.dts (this board
has a MPC852). Using this board as starting point could be better (I do
not your hardware, you must decide yourself) to match your custom board.

In your DTS file you mixed 852 entries and 885. Setting frequency to 0
is correct, because it is filled dynamically. You can set memory, such as:

memory {
                device_type = "memory";
                reg = <00000000 0x8000000>;
        };

However, you have to take in account you must port the kernel for your
board. There are a lot of points that can avoid your system to boot. I
agree at the moment the kernel should stuck on the device tree, but we
can only suppose it. This is strictly not related to ELDK, but most
related to porting the kernel to custom architectures. If you cannot
make some progress fast, it is probably time to connect a JTAG debugger
and understand what is happening.

Regards,
Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================


More information about the eldk mailing list