Freescale MPC8313 TSEC SGMII problem.

2010-01-28 Thread Johnny Hung
Hi All, I have a Freescale MPC8313 customized board and want to confiugre TSEC1 to SGMII. Would you please help me for this question, 1). Is it possible for MPC8313 TSEC1 connect to Ethernet Switch by SGMII (without phy), like below diagram. [MPC8313 TSEC1] [Ethernet Switch] 2)

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-25 Thread Johnny Hung
2010/1/25 Chris Simmonds : > Johnny Hung wrote: >> >> 2010/1/22 Marco Stornelli : >>> >>> 2010/1/22 Johnny Hung : >>>> >>>> 2010/1/20 Marco Stornelli : >>>>> >>>>> 2010/1/20 Johnny Hung : >>>>>

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-24 Thread Johnny Hung
2010/1/22 Marco Stornelli : > 2010/1/22 Johnny Hung : >> 2010/1/20 Marco Stornelli : >>> 2010/1/20 Johnny Hung : >>>> 2010/1/19 Matthias Kaehlcke : >>>>> El Tue, Jan 19, 2010 at 02:17:22PM +0100 Ricard Wanderlof ha dit: >>>>> >&g

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-21 Thread Johnny Hung
2010/1/20 Marco Stornelli : > 2010/1/20 Johnny Hung : >> 2010/1/19 Matthias Kaehlcke : >>> El Tue, Jan 19, 2010 at 02:17:22PM +0100 Ricard Wanderlof ha dit: >>> >> I consider to use ramdisk as rootfs because worry about wrong >> operation in rootfs (is use

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-21 Thread Johnny Hung
2010/1/20 Ricard Wanderlof : > > On Wed, 20 Jan 2010, Johnny Hung wrote: > >>> i'd also recommend you to consider if you really need the >>> ramdisk. when using a ram disk its entire content is loaded to the RAM >>> occupying space, even if you don't

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-19 Thread Johnny Hung
2010/1/19 Matthias Kaehlcke : > El Tue, Jan 19, 2010 at 02:17:22PM +0100 Ricard Wanderlof ha dit: > >> On Tue, 19 Jan 2010, Johnny Hung wrote: >> >>> Okay, I think the steps is below if my rootfs is ramdisk and configure >>> files in jffs2, >>> >

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-19 Thread Johnny Hung
2010/1/19 Matthias Kaehlcke : > El Tue, Jan 19, 2010 at 06:13:07PM +0800 Johnny Hung ha dit: > >> 2010/1/19 Matthias Kaehlcke : >> > El Tue, Jan 19, 2010 at 05:20:53PM +0800 Johnny Hung ha dit: >> > >> >> I have build an embedded Linux system and rootfs

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-19 Thread Johnny Hung
2010/1/19 Matthias Kaehlcke : > El Tue, Jan 19, 2010 at 05:20:53PM +0800 Johnny Hung ha dit: > >> I have build an embedded Linux system and rootfs is a ramdisk. Ramdisk >> rootfs resides in memory so modify files is non-effective after a >> reboot. Some directories in

mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-19 Thread Johnny Hung
Hi ALL, I have build an embedded Linux system and rootfs is a ramdisk. Ramdisk rootfs resides in memory so modify files is non-effective after a reboot. Some directories in rootfs, like /etc, /usr, ... are contain many application configuration files and I want to mount it to jffs2 flash filesysye

Re: jffs2_gcd_mtdx thread and umount problem.

2010-01-18 Thread Johnny Hung
Yes, umount / reboot command doesn't hang after first boot + wait for 20 minutes. The jffs2_gcd_mtdx will re-erase empty blocks but how do I know it is finished? BTW, why jffs2_gcd_mtd need to re-erase empty blocks and it will cause some command cannot work if erase block is necessary. I mean many

jffs2_gcd_mtdx thread and umount problem.

2010-01-17 Thread Johnny Hung
Hi All, I have a customized MPC8313 (ppc arch) board with SPANSION 64MB NOR flash, everything works fine but I found a abnormal about JFFS2 flahs filesystem. The system will mount JFFS2 to /mnt/mtd when system boot up. I try to execute umount /mnt/mtd or sync or reboot right away after login then

Re: linux booting fails on ppc440x5 with SRAM

2009-10-02 Thread Johnny Hung
It's seems a RAM initialize problem. Try to use ICE or your bootloader to test initialized RAM wirh write/read operation. Ex, use mtest in uboot to check memory. For ICE, it should be an detailed memory test function like hardware diagnostic. 2009/9/24 Benjamin Herrenschmidt : > On Wed, 2009-09-23

Re: GPIO driver for MPC8313.

2009-09-27 Thread Johnny Hung
The kerne source I used now is 2.6.23 with MPC8313-erdb pached. I think I should port 2.6.28 gpio function back to 2.6.23. Is it a common way to implement it in the kernel I used or I should port MPC8313-erdb pached to 2.6.28 opposite? BRs, H. Johnny 2009/9/23 Johnny Hung : > Many thanks

Re: GPIO driver for MPC8313.

2009-09-23 Thread Johnny Hung
Many thanks for your help. I will try it. 2009/9/23 Peter Korsgaard : >>>>>> "Johnny" == Johnny Hung writes: > >  Johnny> Thanks, got it. BTW, how to trigger GPIO level in user space >  Johnny> application? I also found >  Johnny> arch/powerpc/

Re: GPIO driver for MPC8313.

2009-09-23 Thread Johnny Hung
Thanks, got it. BTW, how to trigger GPIO level in user space application? I also found arch/powerpc/platforms/52xx/mpc52xx_gpio.c is a good example. Any reply is appreciate. BRs, H. Johnny 2009/9/23 Peter Korsgaard : >>>>>> "Johnny" == Johnny Hung writes: > >

GPIO driver for MPC8313.

2009-09-22 Thread Johnny Hung
Hi All:    Is there a alreday written GPIO dirver or example for MPC8313/similar ppc platform. It looks like many people need GPIO dirver to control LED, etc... I think is it possible to write a general gpio driver for all ppc platform and only need to modify gpio iomap information of dtb file. Ple

Re: PCI device support in Open Firmware (device tree syntax)

2009-06-30 Thread Johnny Hung
2009/6/30 Marco Stornelli : > 2009/6/30 Johnny Hung : >> Thanks for your reply. So there are no PCI device resource info in >> flat device tree. >> How do PCI device resources be assign in general case or is there any >> example? >> I am so confusing, would you

Re: PCI device support in Open Firmware (device tree syntax)

2009-06-29 Thread Johnny Hung
Thanks for your reply. So there are no PCI device resource info in flat device tree. How do PCI device resources be assign in general case or is there any example? I am so confusing, would you please give me detailed describle? BRs, H. Johnny > > With flat device trees, PCI devices are not typical

PCI device support in Open Firmware (device tree syntax)

2009-06-29 Thread Johnny Hung
Hi all, I am working in customized Freescale MPC8313 board. There are two PCI devices (Broadcom Switch) in PCI bus. Each PCI device has its configuration space. It contains vendor/product ID (RO)..., and important information, likes BARs (Base Address), INT line and IRQ(RW). These resources (BA

Re: How the kernel printk works before do console_setup.

2009-06-24 Thread Johnny Hung
2009/6/25 Benjamin Herrenschmidt : > >> Before the console is set up, the printk data is formatted >> and put into the kernel log buffer, but not sent to any console. >> Any messages printk'ed before that are buffered but do not >> appear.  When the console is initialized, then all buffered >> mess

How the kernel printk works before do console_setup.

2009-06-23 Thread Johnny Hung
Hi All: I have a powerpc arch platform. The default console is ttyS1 not ttyS0 in the platform. My question is how the kernel print debug message like DBG before parse kernel command line and do console_setup function. The command line passed to kernel about console info is console=ttyS1. So ke