Hi Lucy,

Lucy Wang wrote:
Here are the NXP LPC288x patch against linux-2.6.21 kernel and the vendor/NXP directory for uClinux. The same resources would also be found in the LPC2400_uClinux Yahoo group as well as a getting started document.
_http://tech.groups.yahoo.com/group/lpc2400_uclinux/_


/(See attached file: linux-2.6.21-uc0-lpc288x.diff)//(See attached file: uClinux-dist-20070130-nxp-lpc288x.diff)/

Couple of comments:

1. Your diff/patches are reversed. Please generate them using something
   like "diff -Naurp <old> <new>". Note that <old> is first, <new>
   second :-)

2. It is not a good idea to manually add entries to the arm arch machine
   table. Go to the ARM linux web site http://www.arm.linux.org.uk/
   and in the developer section you can add machine entries.
   (Code doesn't need to be in the kernel yet for it).

3. Use standard names where possible, for example
   arch/arm/mach-lpc28xx/Kconfig-features should just be Kconfig

4. not strictly necessary but it is nice to consistently put
   GPL type license text at top of new source files (some in the
   kernel patch have it, some dont').

5. In a few spots looks like debug and trace code still in.

6. Try to avoid white space changes in amongst other changes.

I have applied the vendors support to uClinux-dist. I have applied
quite a few of the lpc kernel changes - not all though. The arch
specific parts are ok.

Have a look what ends up in the next uClinux-dist patch (in the
next couple of days) and we can sort out the remaining bits.

Note that to push this up to mainline would require some more
cleanup work too. But some testing time in the uClinux-dist
seems like a good start.

Thanks
Greg




*A snapshot of the console output:*/
/

      U-Boot 1.1.6 (Jan 9 2008 - 01:56:04)

      DRAM: 16 MB
      Flash: 9 MB
      *** Warning - bad CRC, using default environment

      In: serial
      Out: serial
      Err: serial
      U-Boot> go 0x30008000

      Linux version 2.6.21-uc1 ([EMAIL PROTECTED]) (gcc version
      3.4.4) #690 Wed Jan 9 10:46:01 CST 2008
      CPU: NXP-LPC2888 [00007700] revision 0 (ARMv3), cr=00000001
      Machine: LPC28XX
      Warning: bad configuration page, trying to continue
      Built 1 zonelists. Total pages: 4064
      Kernel command line: root=/dev/ram0 initrd=0x30900000,4096k
      keepinitrd console=ttyS0,115200N8
      PID hash table entries: 64 (order: 6, 256 bytes)
      lpc28xx_time_init
      Console: colour dummy device 80x30
      Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
      Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
      Memory: 16MB = 16MB total
      Memory: 13628KB available (2256K code, 257K data, 88K init)
      Mount-cache hash table entries: 512
      NET: Registered protocol family 16
      SCSI subsystem initialized
      NET: Registered protocol family 2
      IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
      TCP established hash table entries: 512 (order: 0, 4096 bytes)
      TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
      TCP: Hash tables configured (established 512 bind 1024)
      TCP reno registered
      checking if image is initramfs...it isn't (bad gzip magic
      numbers); looks like an initrd
      NetWinder Floating Point Emulator V0.97 (double precision)
      io scheduler noop registered (default)
      lpc28xx lcd: driver loaded
      Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing
      disabled
      Serial8250: ttyS0 at MMIO 0x0 (irq = 12) is a 16550A
      RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
      loop: loaded (max 8 devices)
      register lpc28xx_udc
      ether gadget: using random host ethernet address
      usb0: Ethernet Gadget, version: May Day 2005
      usb0: using lpc28xx_udc, OUT ep1out IN ep1in STATUS ep2in
      usb0: MAC 12:34:56:78:99:aa
      usb0: HOST MAC 26:5c:d7:66:2e:4d
      usb0: RNDIS ready
      lpc28xx rtc init
      Open rtc...
      lpc28xx_rtc lpc28xx_rtc: rtc core: registered lpc28xx_rtc as rtc0
      LPC28XX Real Time Clock driver.
      lpc28xx_mci: Multimedia Card Interface driver for NXP LPC22XX.
      TCP cubic registered
      NET: Registered protocol family 1
      NET: Registered protocol family 17
      lpc28xx_rtc_readtime(): 2969-08-03 17:22:55
      lpc28xx_rtc lpc28xx_rtc: setting the system clock to 2969-08-03
      17:22:55 (1479240303)
      RAMDISK: romfs filesystem found at block 0
      RAMDISK: Loading 751KiB [1 disk] into ram disk... <6>usb0: high
      speed config #2: 100 mA, Ethernet Gadget, using RNDIS
      done.
      VFS: Mounted root (romfs filesystem) readonly.
      Freeing init memory: 88K
      mmcblk0: mmc0:d99b S016B 14560KiB
      mmcblk0: unknown partition table
      Welcome to
      ____ _ _
      / __| ||_|
      _ _| | | | _ ____ _ _ _ _
      | | | | | | || | _ \| | | |\ \/ /
      | |_| | |__| || | | | | |_| |/ \
      | ___\____|_||_|_| |_|\____|\_/\_/
      | |
      |_|

      For further information check:
      http://www.uclinux.org/

      #

      Best regards,
      Lucy Wang


--
------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     [EMAIL PROTECTED]
Secure Computing Corporation                PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to