友善官方Mini2440 Linux移植开发实战指南问题总结.docx

上传人:b****4 文档编号:4417237 上传时间:2022-12-01 格式:DOCX 页数:19 大小:162.85KB
下载 相关 举报
友善官方Mini2440 Linux移植开发实战指南问题总结.docx_第1页
第1页 / 共19页
友善官方Mini2440 Linux移植开发实战指南问题总结.docx_第2页
第2页 / 共19页
友善官方Mini2440 Linux移植开发实战指南问题总结.docx_第3页
第3页 / 共19页
友善官方Mini2440 Linux移植开发实战指南问题总结.docx_第4页
第4页 / 共19页
友善官方Mini2440 Linux移植开发实战指南问题总结.docx_第5页
第5页 / 共19页
点击查看更多>>
下载资源
资源描述

友善官方Mini2440 Linux移植开发实战指南问题总结.docx

《友善官方Mini2440 Linux移植开发实战指南问题总结.docx》由会员分享,可在线阅读,更多相关《友善官方Mini2440 Linux移植开发实战指南问题总结.docx(19页珍藏版)》请在冰豆网上搜索。

友善官方Mini2440 Linux移植开发实战指南问题总结.docx

友善官方Mini2440Linux移植开发实战指南问题总结

友善官方<>问题总结 2011-07-0617:

20:

45

分类:

 LINUX

本人是参考友善官方<>从第一章节开始仔细阅读和试验的,现对本书中出现的漏洞和错误之处以作笔记总结,方便自已的同时希望能对他人有所帮助~

 

hardware:

mini2440(64MFLASH)

platform:

fedora9undervmware

 

未标出章节为没有错误的章节,特此说明.

附标记后的友善官方<>PDF

 Mini2440Linux移植开发实战指南_note.part1.rar  

 Mini2440Linux移植开发实战指南_note.part2.rar  

 Mini2440Linux移植开发实战指南_note.part3.rar   

 

3.7章节

 

参照此手册完成本章节后,编译内核之前还应再修改两处,不然不出现很多错误,在此不列出错误内容.

 

1.因为这个mach-mini2440.c是从mach-smdk2440.c处复制过来的,mach-smdk2440.c中未对nand作处理,但这里我们作处理啦,所以应在文件中加入相应的头文件

#include

#include

#include

#include

#include

2.不作下面的修改之前如果编译,以然会出现一个警告

warning:

"mini2440_nand_info"definedbutnotused.

 

解决方法:

  在staticvoid__initmini2440_map_io(void)

   {

   }

   中加入以下代码:

    s3c_device_nand.dev.platform_data=&mini2440_nand_info;

 

3.8章节

 

    完全按照此章节修改好程序后,编译下载到开发板,并下载自已制作适合自已开发板(64M)的文件系统,后出现下面的问题

 

#####FriendlyARMBIOSfor2440#####

[x]bonpart0320k2368k

[v]Downloadvivi

[k]Downloadlinuxkernel

[y]Downloadroot_yaffsimage

[a]AbsoluteUserApplication

[n]DownloadNboot

[l]DownloadWinCEboot-logo

[w]DownloadWinCENK.bin

[d]Download&Run

[z]DownloadzImageintoRAM

[g]BootlinuxfromRAM

[f]Formatthenandflash

[b]Bootthesystem

[s]Setthebootparameters

[u]BackupNANDFlashtoHOSTthroughUSB(upload)

[r]RestoreNANDFlashfromHOSTthroughUSB

[q]Gotoshellofvivi

[i]Version:

1026-12

Enteryourselection:

b

Copylinuxkernelfrom0x00060000to0x30008000,size=0x00500000...done

zImagemagic=0x016f2818

Setuplinuxparametersat0x30000100

linuxcommandlineis:

"noinitrdroot=/dev/mtdblock3init=/linuxrcconsole=ttySA

C0"

MACH_TYPE=1999

NOW,BootingLinux......

UncompressingLinux.............................................................

......................................................................done,boo

tingthekernel.

Linuxversion2.6.32.2(root@localhost.localdomain)(gccversion4.4.3(ctng-1.6

.1))#8WedJul617:

00:

40CST2011

CPU:

ARM920T[41129200]revision0(ARMv4T),cr=c0007177

CPU:

VIVTdatacache,VIVTinstructioncache

Machine:

FriendlyARMmini2440Developboard

ATAG_INITRDisdeprecated;pleaseupdateyourbootloader.

Memorypolicy:

ECCdisabled,Datacachewriteback

CPUS3C2440A(id0x32440001)

S3C24XXClocks,(c)2004SimtecElectronics

S3C244X:

core405.000MHz,memory101.250MHz,peripheral50.625MHz

CLOCK:

Slowmode(1.500MHz),fast,MPLLon,UPLLon

Built1zonelistsinZoneorder,mobilitygroupingon. Totalpages:

16256

Kernelcommandline:

noinitrdroot=/dev/mtdblock3init=/linuxrcconsole=ttySAC0

PIDhashtableentries:

256(order:

-2,1024bytes)

Dentrycachehashtableentries:

8192(order:

3,32768bytes)

Inode-cachehashtableentries:

4096(order:

2,16384bytes)

Memory:

64MB=64MBtotal

Memory:

60524KBavailable(3680Kcode,417Kdata,132Kinit,0Khighmem)

SLUB:

Genslabs=11,HWalign=32,Order=0-3,MinObjects=0,CPUs=1,Nodes=1

HierarchicalRCUimplementation.

NR_IRQS:

85

irq:

clearingsubpendingstatus00000003

irq:

clearingsubpendingstatus00000002

Console:

colourdummydevice80x30

console[ttySAC0]enabled

Calibratingdelayloop...201.93BogoMIPS(lpj=504832)

Mount-cachehashtableentries:

512

CPU:

Testingwritebuffercoherency:

ok

NET:

Registeredprotocolfamily16

S3C2440:

Initialisingarchitecture

S3C2440:

IRQSupport

S3C24XXDMADriver,(c)2003-2004,2006SimtecElectronics

DMAchannel0atc4808000,irq33

DMAchannel1atc4808040,irq34

DMAchannel2atc4808080,irq35

DMAchannel3atc48080c0,irq36

S3C244X:

ClockSupport,DVSoff

bio:

createslabat0

usbcore:

registerednewinterfacedriverusbfs

usbcore:

registerednewinterfacedriverhub

usbcore:

registerednewdevicedriverusb

s3c-i2cs3c2440-i2c:

slaveaddress0x10

s3c-i2cs3c2440-i2c:

busfrequencysetto98KHz

s3c-i2cs3c2440-i2c:

i2c-0:

S3CI2Cadapter

NET:

Registeredprotocolfamily2

IProutecachehashtableentries:

1024(order:

0,4096bytes)

TCPestablishedhashtableentries:

2048(order:

2,16384bytes)

TCPbindhashtableentries:

2048(order:

1,8192bytes)

TCP:

Hashtablesconfigured(established2048bind2048)

TCPrenoregistered

NET:

Registeredprotocolfamily1

RPC:

Registeredudptransportmodule.

RPC:

Registeredtcptransportmodule.

RPC:

RegisteredtcpNFSv4.1backchanneltransportmodule.

JFFS2version2.2.(NAND)©2001-2006RedHat,Inc.

ROMFSMTD(C)2007RedHat,Inc.

yaffsJul 6201112:

49:

18Installing.

msgmnihasbeensetto118

alg:

Notestforstdrng(krng)

ioschedulernoopregistered

ioscheduleranticipatoryregistered(default)

ioschedulerdeadlineregistered

ioschedulercfqregistered

Console:

switchingtocolourframebufferdevice60x53

fb0:

s3c2410fbframebufferdevice

s3c2440-uart.0:

s3c2410_serial0atMMIO0x50000000(irq=70)isaS3C2440

s3c2440-uart.1:

s3c2410_serial1atMMIO0x50004000(irq=73)isaS3C2440

s3c2440-uart.2:

s3c2410_serial2atMMIO0x50008000(irq=76)isaS3C2440

brd:

moduleloaded

S3C24XXNANDDriver,(c)2004SimtecElectronics

s3c24xx-nands3c2440-nand:

Tacls=3,29nsTwrph0=769ns,Twrph1=329ns

s3c24xx-nands3c2440-nand:

NANDsoftECC

NANDdevice:

ManufacturerID:

0xec,ChipID:

0x76(SamsungNAND64MiB3,3V8-bit

Scanningdeviceforbadblocks

Baderaseblock3091at0x00000304c000

Creating5MTDpartitionson"NAND64MiB3,3V8-bit":

0x000000000000-0x000000040000:

"supervivi"

ftl_cs:

FTLheadernotfound.

0x000000040000-0x000000060000:

"param"

ftl_cs:

FTLheadernotfound.

0x000000060000-0x000000560000:

"Kernel"

uncorrectableerror:

uncorrectableerror:

0x000000560000-0x000040560000:

"root"

mtd:

partition"root"extendsbeyondtheendofdevice"NAND64MiB3,3V8-bit"-

-sizetruncatedto0x3aa0000

ftl_cs:

FTLheadernotfound.

0x000000000000-0x000004000000:

"nand"

uncorrectableerror:

uncorrectableerror:

dm9000EthernetDriver,V1.31

ohci_hcd:

USB1.1'Open'HostController(OHCI)Driver

s3c2410-ohcis3c2410-ohci:

S3C24XXOHCI

s3c2410-ohcis3c2410-ohci:

newUSBbusregistered,assignedbusnumber1

s3c2410-ohcis3c2410-ohci:

irq42,iomem0x49000000

usbusb1:

configuration#1chosenfrom1choice

hub1-0:

1.0:

USBhubfound

hub1-0:

1.0:

2portsdetected

usbcore:

registerednewinterfacedriverlibusual

mice:

PS/2mousedevicecommonforallmice

S3C24XXRTC,(c)2004,2006SimtecElectronics

i2c/deventriesdriver

S3C2410WatchdogTimer,(c)2004SimtecElectronics

s3c2410-wdts3c2410-wdt:

watchdoginactive,resetdisabled,irqenabled

cpuidle:

usinggovernorladder

sdhci:

SecureDigitalHostControllerInterfacedriver

sdhci:

Copyright(c)PierreOssman

usbcore:

registerednewinterfacedriverhiddev

usbcore:

registerednewinterfacedriverusbhid

usbhid:

v2.6:

USBHIDcoredriver

AdvancedLinuxSoundArchitectureDriverVersion1.0.21.

NodeviceforDAIUDA134X

NodeviceforDAIs3c24xx-i2s

ALSAdevicelist:

 Nosoundcardsfound.

TCPcubicregistered

NET:

Registeredprotocolfamily17

drivers/rtc/hctosys.c:

unabletoopenrtcdevice(rtc0)

yaffs:

devis32505859nameis"mtdblock3"

yaffs:

passedflags""

yaffs:

AttemptingMTDmounton31.3,"mtdblock3"

yaffs:

block2747ismarkedbad

block2748isbad

usb1-1:

newlowspeedUSBdeviceusings3c2410-ohciandaddress2

usb1-1:

configuration#1chosenfrom1choice

input:

PIXARTUSBOPTICALMOUSEas/devices/platform/s3c2410-ohci/usb1/1-1/1-1:

1

.0/input/input0

generic-usb0003:

093A:

2510.0001:

input,hidraw0:

USBHIDv1.11Mouse[PIXARTUSB

OPTICALMOUSE]onusb-s3c24xx-1/input0

yaffs_read_super:

isCheckpointed0

VFS:

Mountedroot(yaffsfilesystem)ondevice31:

3.

Freeinginitmemory:

132K

Unabletohandlekernelpagingrequestatvirtualaddress5058455e

pgd=c3ac4000

[5058455e]*pgd=00000000

Internalerror:

Oops:

80000005[#1]

lastsysfsfile:

Moduleslinkedin:

CPU:

0   Nottainted (2.6.32.2#8)

PCisat0x5058455e

LRisats3c2410_nand_select_chip+0x88/0xa0

pc:

[<5058455e>]   lr:

[]   psr:

20000033

sp:

c3823a50 ip:

00000006 fp:

00000000

r10:

00000001 r9:

00011d93 r8:

00000000

r7:

02912600 r6:

00000003 r5:

c3998840 r4:

00000000

r3:

5058455f r2:

c4c00004 r1:

00000000 r0:

c0024f2c

Flags:

nzCv IRQson FIQson ModeSVC_32 ISAThumb Segmentuser

Control:

c000717f Table:

33ac4000 DAC:

00000015

Processlinuxrc(pid:

1,stacklimit=0xc3822270)

Stack:

(0xc3823a50to0xc3824000)

3a40:

                                    c3887988c3887800c3823b54c01e9868

3a60:

ffffffff00000004000000100000000000000000000002000000000000000008

3a80:

00000000000000010000000100000000000000040000001f0000000000000004

3aa0:

00000001000000000000000000000000c3887800c3823b5400000200c0025000

3ac0:

00011d930291260000000000c01e9e9cc3823b54000000000000000000000000

3ae0:

000000000000000100000001000000000000000060000013c3887800c39a9400

3b00:

005600000000000000000200c002500000011d93c3823b5400000000c01ce128

3b20:

c3823b54ffffffe0023b2600c3823ba8c3813000c39a9400c3823b74c0154734

3b40:

c3823b54c3887800023b26000000000000011db3000000010000020000000000

3b60:

000000080000000000000000c0025000c3823b74c3823b98c381300000000000

3b80:

00000000c3813000c3823ba800011db300000200000000000000000000000469

3ba0:

00001000c0153314000000000000000100000bab000004680000020000000001

3bc0:

0000000000000000c3823c0c00000001c3823be0c0185c780000009a00000000

3be0:

0000009ac0025000c3ab5078c3ab507800000200c3ab5078c3813000c3ab5078

3c00:

00000200c014e7c400000000c00250000008d000000000000000000000000000

3c20:

0000008cc04424a0c3813000c3ab5078c002500000100100c341044800200200

3c40:

0

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 解决方案 > 学习计划

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1