<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>I think I2C-tools is what you need as sample code to access I2C in Linux. Here is the link<br>http://dl.lm-sensors.org/i2c-tools/releases/i2c-tools-3.0.1.tar.bz2<br>There are a lot of tools to access, set/get/dump register, read/write the I2C eeprom...<br>But please use them with care, especially when you try to read/write the device at address 0x50 ( it's is bootstrap eeprom). <br>You might not boot up your board after playing with this device :-)<br>Quan Nguyen<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">----- Thư gốc ----<br>Từ: Duy-Ky Nguyen &lt;duykynguyen@hotmail.com&gt;<br>Đến: linuxppc-embedded@ozlabs.org<br>Gửi ngày: Thứ Sáu, 10 tháng 10, 2008
 6:11:22<br>Chủ đề: API access I2C<br><br>Hello,<br><br>I have an eva board MPC8313E-RDB with 3 I2C device at address 48, 50, 68.<br>I'm able to read data from those 3 devices<br><br>I follow linux/Documentation/i2c/dev-interface to create a C code to access <br>those 3 devices in Linux env, but all are failed !!!<br><br>I really appreciate your help where to find&nbsp; info or sample code running in <br>Linyux to access I2C devices<br><br>Thanks so much,<br><br>Duy-Ky<br><br>----- Original Message ----- <br>From: &lt;<a ymailto="mailto:linuxppc-embedded-request@ozlabs.org" href="mailto:linuxppc-embedded-request@ozlabs.org">linuxppc-embedded-request@ozlabs.org</a>&gt;<br>To: &lt;<a ymailto="mailto:linuxppc-embedded@ozlabs.org" href="mailto:linuxppc-embedded@ozlabs.org">linuxppc-embedded@ozlabs.org</a>&gt;<br>Sent: Thursday, October 09, 2008 2:05 PM<br>Subject: Linuxppc-embedded Digest, Vol 50, Issue 14<br><br><br>&gt; Send Linuxppc-embedded mailing
 list submissions to<br>&gt; <a ymailto="mailto:linuxppc-embedded@ozlabs.org" href="mailto:linuxppc-embedded@ozlabs.org">linuxppc-embedded@ozlabs.org</a><br>&gt;<br>&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>&gt; <a href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded" target="_blank">https://ozlabs.org/mailman/listinfo/linuxppc-embedded</a><br>&gt; or, via email, send a message with subject or body 'help' to<br>&gt; <a ymailto="mailto:linuxppc-embedded-request@ozlabs.org" href="mailto:linuxppc-embedded-request@ozlabs.org">linuxppc-embedded-request@ozlabs.org</a><br>&gt;<br>&gt; You can reach the person managing the list at<br>&gt; <a ymailto="mailto:linuxppc-embedded-owner@ozlabs.org" href="mailto:linuxppc-embedded-owner@ozlabs.org">linuxppc-embedded-owner@ozlabs.org</a><br>&gt;<br>&gt; When replying, please edit your Subject line so it is more specific<br>&gt; than "Re: Contents of Linuxppc-embedded
 digest..."<br>&gt;<br>&gt;<br>&gt; Today's Topics:<br>&gt;<br>&gt;&nbsp;  1. Re: performance: memcpy vs. __copy_tofrom_user (Leon Woestenberg)<br>&gt;&nbsp;  2. Re: performance: memcpy vs. __copy_tofrom_user (Matt Sealey)<br>&gt;&nbsp;  3. Toolchain for ppc-440 without FPU (Ademir Zanetti Junior)<br>&gt;&nbsp;  4. Re: FS_ENET ERROR(s) 0x12 at second NFS RPC port lookup<br>&gt;&nbsp; &nbsp; &nbsp; (100005/1) (Remi Lefevre)<br>&gt;&nbsp;  5. MTD map drivers (FSL UPM NAND) (Alemao)<br>&gt;&nbsp;  6. RE: Toolchain for ppc-440 without FPU (Ayman El-Khashab)<br>&gt;<br>&gt;<br>&gt; ----------------------------------------------------------------------<br>&gt;<br>&gt; Message: 1<br>&gt; Date: Thu, 9 Oct 2008 14:04:53 +0200<br>&gt; From: "Leon Woestenberg" &lt;<a ymailto="mailto:leon.woestenberg@gmail.com" href="mailto:leon.woestenberg@gmail.com">leon.woestenberg@gmail.com</a>&gt;<br>&gt; Subject: Re: performance: memcpy vs. __copy_tofrom_user<br>&gt; To:
 "Dominik Bozek" &lt;<a ymailto="mailto:domino@mikroswiat.pl" href="mailto:domino@mikroswiat.pl">domino@mikroswiat.pl</a>&gt;<br>&gt; Cc: <a ymailto="mailto:linuxppc-dev@ozlabs.org" href="mailto:linuxppc-dev@ozlabs.org">linuxppc-dev@ozlabs.org</a>, Paul Mackerras &lt;<a ymailto="mailto:paulus@samba.org" href="mailto:paulus@samba.org">paulus@samba.org</a>&gt;,<br>&gt; <a ymailto="mailto:linuxppc-embedded@ozlabs.org" href="mailto:linuxppc-embedded@ozlabs.org">linuxppc-embedded@ozlabs.org</a><br>&gt; Message-ID:<br>&gt; &lt;<a ymailto="mailto:c384c5ea0810090504x570cb6aai6d136a150e74ac05@mail.gmail.com" href="mailto:c384c5ea0810090504x570cb6aai6d136a150e74ac05@mail.gmail.com">c384c5ea0810090504x570cb6aai6d136a150e74ac05@mail.gmail.com</a>&gt;<br>&gt; Content-Type: text/plain; charset=ISO-8859-1<br>&gt;<br>&gt; Hello all,<br>&gt;<br>&gt; On Thu, Oct 9, 2008 at 1:41 PM, Dominik Bozek &lt;<a ymailto="mailto:domino@mikroswiat.pl"
 href="mailto:domino@mikroswiat.pl">domino@mikroswiat.pl</a>&gt; <br>&gt; wrote:<br>&gt;&gt; Paul Mackerras wrote:<br>&gt;&gt;&gt; Dominik Bozek writes:<br>&gt;&gt;&gt;&gt; Actually I made couple of other tests on that mpc8313. Most of them are<br>&gt;&gt;&gt;&gt; to ugly to publish them, but... My problem is that I have to boost the<br>&gt;&gt;&gt;&gt; gigabit interface on the mpc8313. I made simple substitution and<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Very interesting.&nbsp; Can you work out where memcpy is being called on<br>&gt;&gt;&gt; the network data?&nbsp; I wouldn't have expected that.<br>&gt;&gt;&gt;<br>&gt;<br>&gt; Also see this recent thread David Jander on August 25th, "Efficient<br>&gt; memcpy()/memmove() for G2/G3 cores..."<br>&gt; on <a ymailto="mailto:linuxppc-dev@ozlabs.org" href="mailto:linuxppc-dev@ozlabs.org">linuxppc-dev@ozlabs.org</a>.<br>&gt;<br>&gt; <a href="http://ozlabs.org/pipermail/linuxppc-dev/2008-September/062449.html"
 target="_blank">http://ozlabs.org/pipermail/linuxppc-dev/2008-September/062449.html</a><br>&gt;<br>&gt; BTW, I am interested in this work as well, I'm currently working with<br>&gt; a 8313 and 8315 design, both are e300 cores.<br>&gt;<br>&gt; My current goal is PCIe though, but I need fast GbE performance as well.<br>&gt;<br>&gt; Also, did you test Freescale's 2.6.24.3 patches that tune the gianfar<br>&gt; interfaces for higher performance?<br>&gt;<br>&gt; Regards,<br>&gt; -- <br>&gt; Leon<br>&gt;<br>&gt;<br>&gt; ------------------------------<br>&gt;<br>&gt; Message: 2<br>&gt; Date: Thu, 09 Oct 2008 10:37:55 -0500<br>&gt; From: Matt Sealey &lt;<a ymailto="mailto:matt@genesi-usa.com" href="mailto:matt@genesi-usa.com">matt@genesi-usa.com</a>&gt;<br>&gt; Subject: Re: performance: memcpy vs. __copy_tofrom_user<br>&gt; To: Paul Mackerras &lt;<a ymailto="mailto:paulus@samba.org" href="mailto:paulus@samba.org">paulus@samba.org</a>&gt;<br>&gt; Cc: <a
 ymailto="mailto:linuxppc-dev@ozlabs.org" href="mailto:linuxppc-dev@ozlabs.org">linuxppc-dev@ozlabs.org</a>, Dominik Bozek &lt;<a ymailto="mailto:domino@mikroswiat.pl" href="mailto:domino@mikroswiat.pl">domino@mikroswiat.pl</a>&gt;,<br>&gt; <a ymailto="mailto:linuxppc-embedded@ozlabs.org" href="mailto:linuxppc-embedded@ozlabs.org">linuxppc-embedded@ozlabs.org</a><br>&gt; Message-ID: &lt;<a ymailto="mailto:48EE2553.30903@genesi-usa.com" href="mailto:48EE2553.30903@genesi-usa.com">48EE2553.30903@genesi-usa.com</a>&gt;<br>&gt; Content-Type: text/plain; charset=UTF-8; format=flowed<br>&gt;<br>&gt; Paul Mackerras wrote:<br>&gt;&gt; Dominik Bozek writes:<br>&gt;&gt;<br>&gt;&gt;&gt; Actually I made couple of other tests on that mpc8313. Most of them are<br>&gt;&gt;&gt; to ugly to publish them, but... My problem is that I have to boost the<br>&gt;&gt;&gt; gigabit interface on the mpc8313. I made simple substitution and<br>&gt;&gt;&gt; __copy_tofrom_user was used
 instead of memcpy. I know, it's wrong, but I<br>&gt;&gt;&gt; speedup that way the network interface for about 10%.<br>&gt;&gt;<br>&gt;&gt; Very interesting.&nbsp; Can you work out where memcpy is being called on<br>&gt;&gt; the network data?&nbsp; I wouldn't have expected that.<br>&gt;<br>&gt; It probably is somewhere.. through some weird and wonderful code path that<br>&gt; needs some serious digging to find. At least in 2.4 memcpy was used and<br>&gt; optimizing it (see Freescale's libmotovec benchmarks) did produce a <br>&gt; sizable<br>&gt; performance improvement. That, and offloading TCP checksumming to AltiVec<br>&gt; helped a lot.<br>&gt;<br>&gt; No help at all on an 8313 but, relevant anyway.<br>&gt;<br>&gt; Since then zero copy networking and other fancy things like the DMA<br>&gt; engine API (for intel ioat at least but also there is fsl dma support)<br>&gt; there's less to actually optimize now so you're less likely to see the<br>&gt; same
 benefits. All these got into mainline because it's essential to<br>&gt; have this kind of architecture to get reasonable speeds out of &gt;gigabit<br>&gt; network links.<br>&gt;<br>&gt;&gt; There is actually no strong reason not to use __copy_tofrom_user as<br>&gt;&gt; memcpy, in fact, as long as we are sure that source and destination<br>&gt;&gt; are both cacheable.<br>&gt;<br>&gt; I do think there is probably a good benefit in doing things like zeroing<br>&gt; pages in AltiVec and copying entire pages with AltiVec (for instance<br>&gt; when copy-on-write happens in an application) - NetBSD and QNX implement<br>&gt; at least this because it's faster than using the cache management and<br>&gt; works fine on uncacheable pages too (also since you're always aligned to<br>&gt; a page, zeroing 4kb aligned to a 4kb boundary - or whatever your page<br>&gt; size happens to be, the number of errors that can occur are absolutely<br>&gt; tiny and performance can
 go through the roof).<br>&gt;<br>&gt; Ahem, but nobody here wants AltiVec in the kernel do they?<br>&gt;<br>&gt; -- <br>&gt; Matt Sealey &lt;<a ymailto="mailto:matt@genesi-usa.com" href="mailto:matt@genesi-usa.com">matt@genesi-usa.com</a>&gt;<br>&gt; Genesi, Manager, Developer Relations<br>&gt;<br>&gt;<br>&gt; ------------------------------<br>&gt;<br>&gt; Message: 3<br>&gt; Date: Thu, 9 Oct 2008 16:08:18 -0300<br>&gt; From: "Ademir Zanetti Junior" &lt;<a ymailto="mailto:ademirzanetti@gmail.com" href="mailto:ademirzanetti@gmail.com">ademirzanetti@gmail.com</a>&gt;<br>&gt; Subject: Toolchain for ppc-440 without FPU<br>&gt; To: <a ymailto="mailto:linuxppc-embedded@ozlabs.org" href="mailto:linuxppc-embedded@ozlabs.org">linuxppc-embedded@ozlabs.org</a><br>&gt; Message-ID:<br>&gt; &lt;<a ymailto="mailto:2204d6480810091208u1776e81fx6597719734751edb@mail.gmail.com"
 href="mailto:2204d6480810091208u1776e81fx6597719734751edb@mail.gmail.com">2204d6480810091208u1776e81fx6597719734751edb@mail.gmail.com</a>&gt;<br>&gt; Content-Type: text/plain; charset="utf-8"<br>&gt;<br>&gt; Hello all,<br>&gt;<br>&gt; I am trying to create a toolchain by hand and I am facing some problems <br>&gt; when<br>&gt; I try to configure the glibc 2.7 for a powerpc. When I try to configure <br>&gt; the<br>&gt; glibc to install the headers I get the following error:<br>&gt;<br>&gt; configure --prefix=/usr --host=powerpc-440-linux-gnu<br>&gt; --with-headers=${SYSROOT}/usr/include --disable-shared --without-cvs<br>&gt; --with-binutils=/home/azanetti/ml507/powerpc/bin/<br>&gt;<br>&gt; checking build system type... i686-pc-linux-gnu<br>&gt; checking host system type... i686-pc-linux-gnu<br>&gt; configure: running configure fragment for add-on nptl<br>&gt; checking sysdep dirs... sysdeps/i386/elf<br>&gt; nptl/sysdeps/unix/sysv/linux/i386/i686
 nptl/sysdeps/unix/sysv/linux/i386<br>&gt; sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux<br>&gt; nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu<br>&gt; sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet<br>&gt; sysdeps/unix/sysv/i386 nptl/sysdeps/unix/sysv sysdeps/unix/sysv<br>&gt; sysdeps/unix/i386 nptl/sysdeps/unix sysdeps/unix sysdeps/posix<br>&gt; sysdeps/i386/i686/fpu nptl/sysdeps/i386/i686 sysdeps/i386/i686<br>&gt; sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu <br>&gt; nptl/sysdeps/i386<br>&gt; sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96<br>&gt; sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754<br>&gt; sysdeps/generic/elf sysdeps/generic<br>&gt; checking for a BSD-compatible install... /usr/bin/install -c<br>&gt; checking whether ln -s works... yes<br>&gt; checking for gcc... gcc<br>&gt; checking for suffix of object files... o<br>&gt; checking whether we are using the
 GNU C compiler... yes<br>&gt; checking whether gcc accepts -g... yes<br>&gt; checking for gcc option to accept ISO C89... none needed<br>&gt; checking how to run the C preprocessor... gcc -E<br>&gt; checking for g++... g++<br>&gt;<br>&gt; .<br>&gt; .<br>&gt; .<br>&gt; checking for long double... yes<br>&gt; checking size of long double... 12<br>&gt; running configure fragment for sysdeps/powerpc/powerpc32/elf<br>&gt; checking for powerpc32 TLS support... no<br>&gt; running configure fragment for sysdeps/unix/sysv/linux/powerpc<br>&gt; checking whether gcc -B/home/azanetti/ml507/powerpc/bin/ -g -O2<br>&gt; -mlong-double-128 uses IBM extended format... no<br>&gt; checking whether gcc -B/home/azanetti/ml507/powerpc/bin/ -g -O2 supports<br>&gt; -mabi=ibmlongdouble... no<br>&gt; configure: error: this configuration requires -mlong-double-128 IBM <br>&gt; extended<br>&gt; format support<br>&gt;<br>&gt;<br>&gt; I already have the binutils 2.18 compiled on my
 PATH. I know that it is<br>&gt; easier to use a script like crosstool to compile it but I do want to<br>&gt; understand what is happening behind the scenes.<br>&gt;<br>&gt; Regards.<br>&gt;<br>&gt; Ademir<br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; URL: <br>&gt; &lt;<a href="http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20081009/a3dd71d6/attachment-0001.htm" target="_blank">http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20081009/a3dd71d6/attachment-0001.htm</a>&gt;<br>&gt;<br>&gt; ------------------------------<br>&gt;<br>&gt; Message: 4<br>&gt; Date: Thu, 9 Oct 2008 21:46:42 +0200<br>&gt; From: "Remi Lefevre" &lt;<a ymailto="mailto:rlefevre@gmail.com" href="mailto:rlefevre@gmail.com">rlefevre@gmail.com</a>&gt;<br>&gt; Subject: Re: FS_ENET ERROR(s) 0x12 at second NFS RPC port lookup<br>&gt; (100005/1)<br>&gt; To: "Scott Wood" &lt;<a ymailto="mailto:scottwood@freescale.com"
 href="mailto:scottwood@freescale.com">scottwood@freescale.com</a>&gt;<br>&gt; Cc: <a ymailto="mailto:linuxppc-embedded@ozlabs.org" href="mailto:linuxppc-embedded@ozlabs.org">linuxppc-embedded@ozlabs.org</a><br>&gt; Message-ID:<br>&gt; &lt;<a ymailto="mailto:4e0b9cb00810091246i2f200dbn9f8dc9877800e629@mail.gmail.com" href="mailto:4e0b9cb00810091246i2f200dbn9f8dc9877800e629@mail.gmail.com">4e0b9cb00810091246i2f200dbn9f8dc9877800e629@mail.gmail.com</a>&gt;<br>&gt; Content-Type: text/plain; charset=ISO-8859-1<br>&gt;<br>&gt; Ok, I'm sorry, I have incorrectly set the 60x pipeline depth to 0<br>&gt; instead of 1 in BCR register.<br>&gt; It works fine now. The side effect is interesting to know...<br>&gt;<br>&gt; regards,<br>&gt; r?mi<br>&gt;<br>&gt;<br>&gt; ------------------------------<br>&gt;<br>&gt; Message: 5<br>&gt; Date: Thu, 9 Oct 2008 18:04:25 -0300<br>&gt; From: Alemao &lt;<a ymailto="mailto:xcarandiru@gmail.com"
 href="mailto:xcarandiru@gmail.com">xcarandiru@gmail.com</a>&gt;<br>&gt; Subject: MTD map drivers (FSL UPM NAND)<br>&gt; To: <a ymailto="mailto:linuxppc-embedded@ozlabs.org" href="mailto:linuxppc-embedded@ozlabs.org">linuxppc-embedded@ozlabs.org</a><br>&gt; Message-ID:<br>&gt; &lt;<a ymailto="mailto:d970ff420810091404j49492e80xcd9250d0ffdcd592@mail.gmail.com" href="mailto:d970ff420810091404j49492e80xcd9250d0ffdcd592@mail.gmail.com">d970ff420810091404j49492e80xcd9250d0ffdcd592@mail.gmail.com</a>&gt;<br>&gt; Content-Type: text/plain; charset=ISO-8859-1<br>&gt;<br>&gt; Hi all,<br>&gt;<br>&gt; Im trying to use a physmap driver for NOR and NAND flash devices.<br>&gt;<br>&gt; With NOR, everything ok. It uses CFI driver.<br>&gt;<br>&gt; The problem is with NAND, cause it is connected at Freescale<br>&gt; LocalBus UPM, and at a first look, the UPM driver is loading after the<br>&gt; physmap (lines 14-15 in kernel output)<br>&gt;<br>&gt; Here some outputs from
 the board:<br>&gt;<br>&gt; Bootloader (U-Boot 1.2.0):<br>&gt;<br>&gt; CPU:&nbsp;  e300c1, MPC8360E, Rev: 21 at 499.999 MHz, CSB:&nbsp; 333 MHz<br>&gt; Board: MPC8360KTX<br>&gt; I2C:&nbsp;  ready<br>&gt; DDR RAM: 128 MB<br>&gt; FLASH: 16 MB<br>&gt; NAND:&nbsp; 64 MiB<br>&gt; In:&nbsp; &nbsp; serial<br>&gt; Out:&nbsp;  serial<br>&gt; Err:&nbsp;  serial<br>&gt;<br>&gt;<br>&gt; Kernel (linux-2.6.17):<br>&gt;<br>&gt; 1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  physmap nor flash device: 1000000 at ff000000<br>&gt; 2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  NOR flash: Found 1 x16 devices at 0x0 in 16-bit bank<br>&gt; 3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Amd/Fujitsu Extended Query Table at 0x0040<br>&gt; 4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; number of CFI chips: 1<br>&gt; 5&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Using physmap partition definition<br>&gt; 6&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp;  Creating 6 MTD partitions on "NOR flash":<br>&gt; 7&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0x00000000-0x00040000 : "u-boot"<br>&gt; 8&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0x00040000-0x00060000 : "env."<br>&gt; 9&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0x00060000-0x00080000 : "sys"<br>&gt; 10&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00080000-0x000c0000 : "logs"<br>&gt; 11&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000c0000-0x00860000 : "admin"<br>&gt; 12&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00860000-0x01000000 : "users"<br>&gt; 13<br>&gt; 14&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; physmap nand flash device: 4000000 at 60000000<br>&gt; 15&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UPM: User-Programmable Machine NAND driver<br>&gt;<br>&gt;<br>&gt; Device Tree Source:<br>&gt;<br>&gt; localbus@e0005000 {<br>&gt;&nbsp; compatible = "fsl,board-localbus";<br>&gt;&nbsp;
 #address-cells = &lt;2&gt;;<br>&gt;&nbsp; #size-cells = &lt;1&gt;;<br>&gt;&nbsp; reg = &lt;e0005000 d8&gt;;&nbsp; &nbsp; // BRx, ORx, etc<br>&gt;<br>&gt;&nbsp; ranges = &lt;0 0 ff000000 1000000&nbsp; &nbsp;  // nor flash,&nbsp; 16 MB<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 0 60000000 4000000&gt;;&nbsp;  // nand flash, 64 MB<br>&gt;<br>&gt;&nbsp; flash@0,0 {<br>&gt;&nbsp; &nbsp; &nbsp; compatible = "atmel,29LV256", "cfi-flash";<br>&gt;&nbsp; &nbsp; &nbsp; reg = &lt;0 0 1000000&gt;;<br>&gt;&nbsp; &nbsp; &nbsp; bank-width = &lt;2&gt;;<br>&gt;&nbsp; &nbsp; &nbsp; device-width = &lt;1&gt;;<br>&gt;&nbsp; };<br>&gt;<br>&gt;&nbsp; nand@1,0 {<br>&gt;&nbsp; &nbsp; &nbsp; compatible = "stmicro,NAND512W3A", "fsl,upm-nand";<br>&gt;&nbsp; &nbsp; &nbsp; reg = &lt;1 0 4000000&gt;;&nbsp;  //reg = &lt;1 0 1&gt;;<br>&gt;&nbsp; &nbsp; &nbsp; width = &lt;1&gt;;<br>&gt;&nbsp; &nbsp; &nbsp; upm = "A";<br>&gt;&nbsp; &nbsp; &nbsp;
 upm-addr-offset = &lt;16&gt;;<br>&gt;&nbsp; &nbsp; &nbsp; upm-cmd-offset = &lt;8&gt;;<br>&gt;&nbsp; &nbsp; &nbsp; gpios = &lt;4 18&gt;;<br>&gt;&nbsp; &nbsp; &nbsp; gpio-parent = &lt;&amp;qe_pio&gt;;<br>&gt;&nbsp; &nbsp; &nbsp; wait-pattern;<br>&gt;&nbsp; &nbsp; &nbsp; wait-write;<br>&gt;&nbsp; };<br>&gt; };<br>&gt;<br>&gt; The CFI driver is at linux/drivers/mtd/chips<br>&gt; The UPM driver is at linux/drivers/mtd/nand<br>&gt;<br>&gt; So, how can I load the UPM driver before physmap?<br>&gt;<br>&gt; Thanks in advance,<br>&gt;<br>&gt; --<br>&gt; Alemao<br>&gt;<br>&gt;<br>&gt; ------------------------------<br>&gt;<br>&gt; Message: 6<br>&gt; Date: Thu, 9 Oct 2008 16:05:47 -0500<br>&gt; From: "Ayman El-Khashab" &lt;<a ymailto="mailto:AymanE@tanisys.com" href="mailto:AymanE@tanisys.com">AymanE@tanisys.com</a>&gt;<br>&gt; Subject: RE: Toolchain for ppc-440 without FPU<br>&gt; To: "Ademir Zanetti Junior" &lt;<a ymailto="mailto:ademirzanetti@gmail.com"
 href="mailto:ademirzanetti@gmail.com">ademirzanetti@gmail.com</a>&gt;,<br>&gt; &lt;<a ymailto="mailto:linuxppc-embedded@ozlabs.org" href="mailto:linuxppc-embedded@ozlabs.org">linuxppc-embedded@ozlabs.org</a>&gt;<br>&gt; Message-ID:<br>&gt; &lt;<a ymailto="mailto:16691A8B34B5D9458EA3A1C37A11555A0137F80B@tanisys-ex2.Tanisys.Local" href="mailto:16691A8B34B5D9458EA3A1C37A11555A0137F80B@tanisys-ex2.Tanisys.Local">16691A8B34B5D9458EA3A1C37A11555A0137F80B@tanisys-ex2.Tanisys.Local</a>&gt;<br>&gt; Content-Type: text/plain; charset="us-ascii"<br>&gt;<br>&gt; I was compiling for the 440FP under cygwin, I believe that I had to use<br>&gt; --enable-long-long when I configured gcc in order to build glibc.<br>&gt;<br>&gt; ________________________________<br>&gt;<br>&gt; From: linuxppc-embedded-bounces+aymane=<a ymailto="mailto:tanisys.com@ozlabs.org" href="mailto:tanisys.com@ozlabs.org">tanisys.com@ozlabs.org</a><br>&gt; [mailto:linuxppc-embedded-bounces+aymane=<a
 ymailto="mailto:tanisys.com@ozlabs.org" href="mailto:tanisys.com@ozlabs.org">tanisys.com@ozlabs.org</a>] On<br>&gt; Behalf Of Ademir Zanetti Junior<br>&gt; Sent: Thursday, October 09, 2008 2:08 PM<br>&gt; To: <a ymailto="mailto:linuxppc-embedded@ozlabs.org" href="mailto:linuxppc-embedded@ozlabs.org">linuxppc-embedded@ozlabs.org</a><br>&gt; Subject: Toolchain for ppc-440 without FPU<br>&gt;<br>&gt;<br>&gt; Hello all,<br>&gt;<br>&gt; I am trying to create a toolchain by hand and I am facing some problems<br>&gt; when I try to configure the glibc 2.7 for a powerpc. When I try to<br>&gt; configure the glibc to install the headers I get the following error:<br>&gt;<br>&gt; configure --prefix=/usr --host=powerpc-440-linux-gnu<br>&gt; --with-headers=${SYSROOT}/usr/include --disable-shared --without-cvs<br>&gt; --with-binutils=/home/azanetti/ml507/powerpc/bin/<br>&gt;<br>&gt; checking build system type... i686-pc-linux-gnu<br>&gt; checking host system type...
 i686-pc-linux-gnu<br>&gt; configure: running configure fragment for add-on nptl<br>&gt; checking sysdep dirs... sysdeps/i386/elf<br>&gt; nptl/sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386<br>&gt; sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux<br>&gt; nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu<br>&gt; sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet<br>&gt; sysdeps/unix/sysv/i386 nptl/sysdeps/unix/sysv sysdeps/unix/sysv<br>&gt; sysdeps/unix/i386 nptl/sysdeps/unix sysdeps/unix sysdeps/posix<br>&gt; sysdeps/i386/i686/fpu nptl/sysdeps/i386/i686 sysdeps/i386/i686<br>&gt; sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu<br>&gt; nptl/sysdeps/i386 sysdeps/i386 sysdeps/wordsize-32<br>&gt; sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32<br>&gt; sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic<br>&gt; checking for a BSD-compatible install... /usr/bin/install
 -c<br>&gt; checking whether ln -s works... yes<br>&gt; checking for gcc... gcc<br>&gt; checking for suffix of object files... o<br>&gt; checking whether we are using the GNU C compiler... yes<br>&gt; checking whether gcc accepts -g... yes<br>&gt; checking for gcc option to accept ISO C89... none needed<br>&gt; checking how to run the C preprocessor... gcc -E<br>&gt; checking for g++... g++<br>&gt;<br>&gt; .<br>&gt; .<br>&gt; .<br>&gt; checking for long double... yes<br>&gt; checking size of long double... 12<br>&gt; running configure fragment for sysdeps/powerpc/powerpc32/elf<br>&gt; checking for powerpc32 TLS support... no<br>&gt; running configure fragment for sysdeps/unix/sysv/linux/powerpc<br>&gt; checking whether gcc -B/home/azanetti/ml507/powerpc/bin/ -g -O2<br>&gt; -mlong-double-128 uses IBM extended format... no<br>&gt; checking whether gcc -B/home/azanetti/ml507/powerpc/bin/ -g -O2 supports<br>&gt; -mabi=ibmlongdouble... no<br>&gt; configure:
 error: this configuration requires -mlong-double-128 IBM<br>&gt; extended format support<br>&gt;<br>&gt;<br>&gt; I already have the binutils 2.18 compiled on my PATH. I know that it is<br>&gt; easier to use a script like crosstool to compile it but I do want to<br>&gt; understand what is happening behind the scenes.<br>&gt;<br>&gt; Regards.<br>&gt;<br>&gt; Ademir<br>&gt;<br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; URL: <br>&gt; &lt;<a href="http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20081009/c91ac7a9/attachment.htm" target="_blank">http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20081009/c91ac7a9/attachment.htm</a>&gt;<br>&gt;<br>&gt; ------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; Linuxppc-embedded mailing list<br>&gt; <a ymailto="mailto:Linuxppc-embedded@ozlabs.org"
 href="mailto:Linuxppc-embedded@ozlabs.org">Linuxppc-embedded@ozlabs.org</a><br>&gt; <a href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded" target="_blank">https://ozlabs.org/mailman/listinfo/linuxppc-embedded</a><br>&gt;<br>&gt; End of Linuxppc-embedded Digest, Vol 50, Issue 14<br>&gt; *************************************************<br>&gt; <br><br>_______________________________________________<br>Linuxppc-embedded mailing list<br><a ymailto="mailto:Linuxppc-embedded@ozlabs.org" href="mailto:Linuxppc-embedded@ozlabs.org">Linuxppc-embedded@ozlabs.org</a><br><a href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded" target="_blank">https://ozlabs.org/mailman/listinfo/linuxppc-embedded</a><br></div></div></div><br>
      <hr size="1"><FONT face=Arial size=-1>Nước nào thường cho nhiều học bổng du học? Khám phá tại <a href="http://sg.rd.yahoo.com/mail/vn/footer/def/*http://vn.answers.yahoo.com">Yahoo! Hỏi & Đáp</a></font></body></html>