热度 32
2013-1-23 15:47
9940 次阅读|
8 个评论
板 子是我自己做的,外扩了flash和大容量pSRAM(4M Byte)。FSMC的片选按照ST3210E-EVAL设计的,使用了ST官方发布的uClinux针对我的板子进行修改。只是苦于ST提供的 bootloader没有源码,为了启动我修改后的uClinux费了不少功夫,最后分析上网搜索linux的启动步骤,自己写了一个 bootloader,顺利的启动了uClinux。虽然还有些小问题,别的不说了先上启动信息(后面有板子的照片) Linux version 2.6.26-uc0 (root@localhost.localdomain) (gcc version 4.5.2 (Sourcery G++ Lite 2011.03-46) ) #18 Mon Jan 21 14:36:20 CST 2013 CPU: ARMv7-M Processor revision 1 (ARMv?(11)M) Machine: STM3210E-EVAL SRAM Config: bank @ 0x68000000 (size: 4096KB) - bank @ 0x20000000 (size: 64KB). Ignoring unrecognised tag 0x00000000 Ignoring unrecognised tag 0x00000000 Built 1 zonelists in Zone order, mobility grouping off. Total pages: 1016 Kernel command line: noinitrd root=mtd1 rootfstype=jffs2 init=/linuxrc console=ttyS0 PID hash table entries: 16 (order: 4, 64 bytes) console enabled Dentry cache hash table entries: 1024 (order: 0, 4096 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Memory: 4MB 0MB = 4MB total Memory: 4052KB available (492K code, 56K data, 8K init) Mount-cache hash table entries: 512 JFFS2 version 2.2. 漏 2001-2006 Red Hat, Inc. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. simple-gpio: now handling 16 GPIOs: 0 - 15 ttyS0 at MMIO 0x40013800 (irq = 37) is a STM32 USART1 Port Probed and found the STM3210E-EVAL NOR flash chip Creating 4 MTD partitions on "S29GL064N NOR FLASH": 0x00000000-0x00100000 : "Kernel raw data" 0x00100000-0x00160000 : "rootfs" 0x00160000-0x00190000 : "rawdata" 0x00190000-0x001c0000 : "cramfs_partition" rtc-stm3210e_eval rtc-stm3210e_eval.0: rtc core: registered rtc-stm3210e_eval as rtc0 rtc-stm3210e_eval rtc-stm3210e_eval.0: setting system clock to 1970-01-01 00:00:00 UTC (0) VFS: Mounted root (jffs2 filesystem) readonly. Bad page state in process 'swapper' page:68001040 flags:0x00000000 mapping:00000000 mapcount:1 count:0 Trying to fix it up, but a reboot is needed Backtrace: Bad page state in process 'swapper' page:68001060 flags:0x00000000 mapping:00000000 mapcount:1 count:0 Trying to fix it up, but a reboot is needed Backtrace: Freeing init memory: 8K Mounting proc fs Mounting sysfs Welcome to ____ _ _ / __| ||_| _ _| | | | _ ___ _ _ _ _ | | | | | | || | _ \| | | |\ \/ / | |_| | |__| || | | | | |_| |/ \ | ___ \____|_||_|_| |_|\____|\_/\_/ | | |_| For further information check: http://www.uclinux.org/ http://www.st.com/stm32 / #