摘要:
机器描述
在board-smartarm3250.c中实现:
MACHINE_START (LPC3XXX, "SmartARM3250 board with the LPC3250 Microcontroller")
/* Maintainer: Kevin Wells, NXP Semiconductors */
.phys_io = UART5_BASE,
.io_pg_offst = ((io_p2v (UART5_BASE))18) & 0xfffc,
.boot_params = 0x80000100,
.map_io = lpc32xx_map_io, //CPU IO映射入口
.init_irq = lpc32xx_in 阅读全文
机器描述
在board-smartarm3250.c中实现:
MACHINE_START (LPC3XXX, "SmartARM3250 board with the LPC3250 Microcontroller")
/* Maintainer: Kevin Wells, NXP Semiconductors */
.phys_io = UART5_BASE,
.io_pg_offst = ((io_p2v (UART5_BASE))18) & 0xfffc,
.boot_params = 0x80000100,
.map_io = lpc32xx_map_io, //CPU IO映射入口
.init_irq = lpc32xx_in 阅读全文
posted @ 2012-04-27 20:20
风行雪舞
阅读(510)
评论(0)
推荐(0)
摘要:
LPC3250 Perpheral Base Registers基地址定义:
LPC3250外设众多,无法将全部的寄存器做成一个头文件,或者列出全部的寄存器和地址。
移植代码将每个外围部件的基地址做成一个文件platform.h,然后为每个外设再编写单独的外设寄存器列表(偏移量),如lpc32xx_gpio.h等等。
platform.h文件内容如下:
/*
* asm-arm/arch-lpc32xx/platform.h
*
* Author: Kevin Wells
*
* Copyright (C) 2008 NXP Semiconductors
*
* This program is free software; you can redistribute it and/or modify
阅读全文
LPC3250 Perpheral Base Registers基地址定义:
LPC3250外设众多,无法将全部的寄存器做成一个头文件,或者列出全部的寄存器和地址。
移植代码将每个外围部件的基地址做成一个文件platform.h,然后为每个外设再编写单独的外设寄存器列表(偏移量),如lpc32xx_gpio.h等等。
platform.h文件内容如下:
/*
* asm-arm/arch-lpc32xx/platform.h
*
* Author: Kevin Wells
*
* Copyright (C) 2008 NXP Semiconductors
*
* This program is free software; you can redistribute it and/or modify
阅读全文
posted @ 2012-04-27 20:19
风行雪舞
阅读(392)
评论(0)
推荐(0)
摘要:
在内核增加SmartARM3250的独立代码
增加SmartARM3250的配置菜单
修改arch/arm/mach-lpc32xx/Kconfig文件,参考原有的菜单进行编写,增加SmartARM3250的配置选项菜单。
增加板级文件
(1)在arch/arm/mach-lpc32xx/目录下增加board-smartarm3250.c文件,在其中实现和开发板具体相关的一下信息,可以参考原有的板子。
(2)修改Makefile,增加board-smartarm3250.c文件的支持。 阅读全文
在内核增加SmartARM3250的独立代码
增加SmartARM3250的配置菜单
修改arch/arm/mach-lpc32xx/Kconfig文件,参考原有的菜单进行编写,增加SmartARM3250的配置选项菜单。
增加板级文件
(1)在arch/arm/mach-lpc32xx/目录下增加board-smartarm3250.c文件,在其中实现和开发板具体相关的一下信息,可以参考原有的板子。
(2)修改Makefile,增加board-smartarm3250.c文件的支持。 阅读全文
posted @ 2012-04-27 20:17
风行雪舞
阅读(316)
评论(0)
推荐(0)
摘要:
2009年1月份,第一个发布版本出现,采用2.6.27.8版本,使用arm-vfp-linux-gnu 4.3.2的编译器,主机环境为Fedora 9。能够编译通过,却无法正常启动,在解压内核后就停止了。
如下是串口终端的信息:
TFTP from server 192.168.7.110; our IP address is 192.168.7.236
Filename 'uImage'.
Load address: 0x80100000
Loading: #################################################################
################################################
done 阅读全文
2009年1月份,第一个发布版本出现,采用2.6.27.8版本,使用arm-vfp-linux-gnu 4.3.2的编译器,主机环境为Fedora 9。能够编译通过,却无法正常启动,在解压内核后就停止了。
如下是串口终端的信息:
TFTP from server 192.168.7.110; our IP address is 192.168.7.236
Filename 'uImage'.
Load address: 0x80100000
Loading: #################################################################
################################################
done 阅读全文
posted @ 2012-04-27 20:15
风行雪舞
阅读(479)
评论(0)
推荐(0)
摘要:
由于NXP基于NAND的U-Boot使用了S1L的一些初始化工作,因此需要把S1L中的初始化工作放到U-Boot中。
修改u-boot.lds,将U-Bootd饿入口地址修改为NOR FLASH的物理地址0xE0000000.
24 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
25 OUTPUT_ARCH(arm)
26 ENTRY(_start)
27 SECTIONS
28 {
29 . = 0xE0000000; #修改为NOR FLASH的物理地址
30
31 . = ALIGN(4);
32 .text :
33 {
34 cpu/arm92 阅读全文
由于NXP基于NAND的U-Boot使用了S1L的一些初始化工作,因此需要把S1L中的初始化工作放到U-Boot中。
修改u-boot.lds,将U-Bootd饿入口地址修改为NOR FLASH的物理地址0xE0000000.
24 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
25 OUTPUT_ARCH(arm)
26 ENTRY(_start)
27 SECTIONS
28 {
29 . = 0xE0000000; #修改为NOR FLASH的物理地址
30
31 . = ALIGN(4);
32 .text :
33 {
34 cpu/arm92 阅读全文
posted @ 2012-04-27 20:13
风行雪舞
阅读(464)
评论(0)
推荐(0)
摘要:
烧写全新U-Boot后,默认参数很少,需要根据自己的实际环境进行设置和更改。
包括ip、服务器的IP、网关、文件名,甚至连bootcmd也需要自行配置。如下是配置好的参数:
U-Boot 1.3.3 (Feb 3 2009 - 10:03:29)
DRAM: 64 MB
NAND: 32 MiB
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
uboot printenv
bootdelay=3
baudrate=115200
ethaddr=DE:AD:BE:EF:00:01
netmask=255.255.255.0
gatewayip=192.168.1.1
bootfile 阅读全文
烧写全新U-Boot后,默认参数很少,需要根据自己的实际环境进行设置和更改。
包括ip、服务器的IP、网关、文件名,甚至连bootcmd也需要自行配置。如下是配置好的参数:
U-Boot 1.3.3 (Feb 3 2009 - 10:03:29)
DRAM: 64 MB
NAND: 32 MiB
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
uboot printenv
bootdelay=3
baudrate=115200
ethaddr=DE:AD:BE:EF:00:01
netmask=255.255.255.0
gatewayip=192.168.1.1
bootfile 阅读全文
posted @ 2012-04-27 20:11
风行雪舞
阅读(554)
评论(0)
推荐(0)
摘要:
SmartARM3250help menu
help sys Displays help and syntax for a specific command
core S1L core system command group
image S1L image processing command group
nand NAND command group
mmu MMU command group
hw Hardware command group 阅读全文
SmartARM3250help menu
help sys Displays help and syntax for a specific command
core S1L core system command group
image S1L image processing command group
nand NAND command group
mmu MMU command group
hw Hardware command group 阅读全文
posted @ 2012-04-27 20:09
风行雪舞
阅读(307)
评论(0)
推荐(0)
摘要:
LPC3250号称有7个串口,实际上串口和其它功能模块存在IO复用情况,使用全部串口的时候有些其它功能是使用不了的。
7个串口:UART1/2/3/4/5/6/7
分成两类:UART1/2/7称为高速串口,UART3/4/5/6则是普通串口。
UART1(高速串口):
U1_TX
U1_RX/GPI_15/CAP1.0
UART2(高速串口):
U2_HCTS/GPI_16/U3_CTS
U2_RX/U3_DSR
U2_TX/U3_DTR
U2_HRTS/GPO_23/U3_RTS 阅读全文
LPC3250号称有7个串口,实际上串口和其它功能模块存在IO复用情况,使用全部串口的时候有些其它功能是使用不了的。
7个串口:UART1/2/3/4/5/6/7
分成两类:UART1/2/7称为高速串口,UART3/4/5/6则是普通串口。
UART1(高速串口):
U1_TX
U1_RX/GPI_15/CAP1.0
UART2(高速串口):
U2_HCTS/GPI_16/U3_CTS
U2_RX/U3_DSR
U2_TX/U3_DTR
U2_HRTS/GPO_23/U3_RTS 阅读全文
posted @ 2012-04-27 20:04
风行雪舞
阅读(599)
评论(0)
推荐(0)
摘要:
armvfp-4.3.2
有两种形式的工具链 tc-nxp-lnx-armvfp-4.3.2-1.src.rpm 和 tc-nxp-lnx-armvfp-4.3.2-1.src.rpm。
tc-nxp-lnx-armvfp-4.3.2-1.rpm
直接使用rpm -ivh命令安装即可。
tc-nxp-lnx-armvfp-4.3.2-1.src.rpm
查看所包含的内容:
[chenxibing@localhost lpc3250]$ rpm -qpl tc-nxp-lnx-armvfp-4.3.2-1.src.rpm
armtool.spec
tc-nxp-lnx-armvfp-4.3.2.tar.bz2
普通用户安装,出错:
[chenxibing 阅读全文
armvfp-4.3.2
有两种形式的工具链 tc-nxp-lnx-armvfp-4.3.2-1.src.rpm 和 tc-nxp-lnx-armvfp-4.3.2-1.src.rpm。
tc-nxp-lnx-armvfp-4.3.2-1.rpm
直接使用rpm -ivh命令安装即可。
tc-nxp-lnx-armvfp-4.3.2-1.src.rpm
查看所包含的内容:
[chenxibing@localhost lpc3250]$ rpm -qpl tc-nxp-lnx-armvfp-4.3.2-1.src.rpm
armtool.spec
tc-nxp-lnx-armvfp-4.3.2.tar.bz2
普通用户安装,出错:
[chenxibing 阅读全文
posted @ 2012-04-27 19:59
风行雪舞
阅读(379)
评论(0)
推荐(0)

浙公网安备 33010602011771号