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] SGMII [Ethernet Switch] 2).

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

2010-01-25 Thread Johnny Hung
2010/1/25 Chris Simmonds ch...@2net.co.uk: Johnny Hung wrote: 2010/1/22 Marco Stornelli marco.storne...@gmail.com: 2010/1/22 Johnny Hung johnny.hack...@gmail.com: 2010/1/20 Marco Stornelli marco.storne...@gmail.com: 2010/1/20 Johnny Hung johnny.hack...@gmail.com: 2010/1/19 Matthias

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

2010-01-24 Thread Johnny Hung
2010/1/22 Marco Stornelli marco.storne...@gmail.com: 2010/1/22 Johnny Hung johnny.hack...@gmail.com: 2010/1/20 Marco Stornelli marco.storne...@gmail.com: 2010/1/20 Johnny Hung johnny.hack...@gmail.com: 2010/1/19 Matthias Kaehlcke matth...@kaehlcke.net: El Tue, Jan 19, 2010 at 02:17:22PM +0100

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

2010-01-21 Thread Johnny Hung
2010/1/20 Ricard Wanderlof ricard.wander...@axis.com: 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 use certain files (or part

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

2010-01-21 Thread Johnny Hung
2010/1/20 Marco Stornelli marco.storne...@gmail.com: 2010/1/20 Johnny Hung johnny.hack...@gmail.com: 2010/1/19 Matthias Kaehlcke matth...@kaehlcke.net: 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

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

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

2010-01-19 Thread Johnny Hung
2010/1/19 Matthias Kaehlcke matth...@kaehlcke.net: 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 rootfs, like

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

2010-01-19 Thread Johnny Hung
2010/1/19 Matthias Kaehlcke matth...@kaehlcke.net: 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, 1. cp /etc/* /mnt/mtd/etc/    (/mnt/mtd is my

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

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 johnny.hack

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 jac...@sunsite.dk: Johnny == Johnny Hung johnny.hack...@gmail.com writes

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 jac...@sunsite.dk: Johnny == Johnny Hung johnny.hack...@gmail.com writes:  Johnny Thanks, got it. BTW, how to trigger GPIO level in user space  Johnny application? I also found  Johnny arch/powerpc/platforms/52xx

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.

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

2009-06-30 Thread Johnny Hung
2009/6/30 Marco Stornelli marco.storne...@gmail.com: 2009/6/30 Johnny Hung johnny.hack...@gmail.com: 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

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

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

Re: How the kernel printk works before do console_setup.

2009-06-25 Thread Johnny Hung
2009/6/25 Benjamin Herrenschmidt b...@kernel.crashing.org: 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