嵌入式相關
NAND Flash ~ empty flash 問題
Openmoko – 惱人的 Empty flash 問題
# sumtool -e 0×20000 –no-cleanmarkers –littleendian -i output/rootfs.jffs2 -o output/newrootfs.jffs2
warning: `regparm’ attribute directive ignored
交叉編譯rt73usb driver的時候,需要指定kernel source路徑
# cd RT73_Linux_STA_Drv1.0.4.0/Module
# make ARCH=arm CROSS_COMPILE=arm-linux-
\KERNDIR=/home2/fyodor/kernel/linux-2.6.25__from__2.6.24.3/
出現了這個警告
warning: `regparm’ attribute directive ignored
網路上查到是說
kernel src directory裡面的 include/asm
他是一個link,應該要指向corss compile目標
(在我這個情況就是asm-arm)
如果沒把asm 指到 asm-arm,就會出現這個warning
http://osdir.com/ml/linux.gps/2006-02/msg00049.html
http://linux.chinaunix.net/bbs/archiver/?tid-916672.html
可是我有正確指過去啊….怎麼還是出現這個warning
受保護:Linux Driver – Platform Device
此為加密文章,因此無法看到摘要。
Read Full Post | Make a Comment ( 輸入密碼才能查看留言 so far )設定暫存器位置的語法
暫存器的Addrewss Uint如果是….
Word:
#define Word_Reg (*(volatile unsigned long *)0×12345678)
Half-Word:
#define HW_Reg (*(volatile unsigned int *)0×876543219)
Char:
#define C_Reg (*(volatile unsigned char *)0xabcd1234)
arm-linux-gcc: unrecognized option `-MQ’
this problem appears when I trying to make my own u-boot
the cause of this error is the version of arm-linux-gcc does not support the argument “MQ”
my gcc version is 2.95.3…
3.4.1 will be ok !
download arm-linux-gcc… handhelds.org
build GNU/Linux ARM Toolchain from scratch
arm-elf-tools VS. arm-linux-tools
從 LinuxSir的討論可以看到~
luoyong的說法:
arm-elf-tools 生成的文件是FLAT格式的,连接时需要选项-elf2flt,编译得到的文件可以直接在裸机上跑,uClinux和ARM7可能只能运行这种格式的程序。
arm-linux-tools编译生成的文件是Linux内使用的可执行文件的格式(比如a.out)。
LYOO的說法:
从新版本看两者间的区别应该已经没有了,是面向同一目标的不同产品。
特地看了一下arm-linux-tools站上的文档,也没提之间的差别,新版的arm-linux-tools也支持ELF格式,而且强调生成的目标代码与操作系统无关,并建议不要使用旧的a.out格式。
我曾分别用arm-elf-tools和arm-linux-tool(u-boot官方提供的编译环境ELDK)编译过u-boot,都可以正常运行。
arm-elf-tools的主頁
Gnome也加入Embedded System陣營囉
在jollen學長那邊看到Gnome即將加入Mobile & Embedded 的領域
恩~又多一套工具可選擇了



