cnCalc计算器论坛

 找回密码
 注册
搜索
查看: 3554|回复: 2

[Nspire] Linux for Nspire相关教程 (整理中)

[复制链接]
发表于 2012-12-2 22:14:53 | 显示全部楼层 |阅读模式
注意:以下为英文混乱版,待翻译+整理

346楼
How to compile your kernel (not using buildroot):
1. Build yourself a cross compiler for arm (little endian), you can use buildroot and the nspire-scripts.
Than add the binarys to your PATH (if they dont have a prefix like "arm-gcc", add one)
2. Create a new folder for your build
3. clone tangrs git tree with "git clone git://github.com/tangrs/linux" and "cd linux"
4. Download my patch (for X, directfb...) "wget http://dl.dropbox.com/u/105478372/fbdev.patch" and apply it "git apply fbdev.patch"
5. Edit "Makefile" and search for "ARCH ?= $(SUBARCH)" and change it to "ARCH := arm".
    Do the same for "CROSS_COMPILE ?= <something>" and change it to "CROSS_COMPILE := <your arm-gcc-prefix e.g. 'arm-elf-'>"
6. "make nspire_defconfig"
7. "make menuconfig", "make xconfig" or "make gconfig"
Configure it suitable for your needs, but enable (Search using "/"):
CONFIG_EXT4_FS
EXT4_USE_FOR_EXT23
CONFIG_SCSI
CONFIG_BLK_DEV_SD
CONFIG_USB_STORAGE
CONFIG_SWAP if you want to use swap
CONFIG_STRIP_ASM_SYMS if you dont want to debug the kernel
disable CONFIG_LOGO if you want to see longer errors on your screen without scrolling

For internet you will need:
CONFIG_INET
CONFIG_NETDEVICES
For WLAN:
CONFIG_CFG80211
CONFIG_MAC80211
and the driver for your WLAN-dongle, you can get the name with "lsusb -v".

If something doesn't work, there are many tutorials on configuring your kernel.
8. Compile: "make zImage -j"
9. Make cup of coffee
10. Drink it, but be careful, it may be hot
11. "mv arch/arm/boot/zImage zImage.tns"
12. Copy it onto your calculator
13. Boot

358楼
But now imagine I have succesfuly compiled the kernel, how to compile stuff that is not included in that kernel ? (for example, how to you manage to add the extra-programs that are available by default when you run your kernel ?).

Ok, guide for buildroot:
1. "git clone git://git.buildroot.org/buildroot" and "cd buildroot"
2. "make menuconfig"
3. Target Architecture -> ARM (little endian)
4. Target Architecture Variant -> arm926t
5. Enable BR2_CCACHE for faster recompilings
6. System Configuration -> Port to run a getty (login prompt) on -> tty0
7. Configure what you want, but use GCC 4.6.x as 4.7 introduces some preprocessor bugs.
8. Edit system/skeleton/etc/passwd and change "root:x:0" to "root::0"
9. "make"
10. "tar -xvf output/images/root>"
11. boot
12. Play crysis if you chose to build it (may need some time)

Of course you can use whatever arm(v5) linux distro you like. But most of them are waaay to slow.
发表于 2012-12-27 17:31:07 | 显示全部楼层
看不明白
发表于 2013-1-1 11:30:53 | 显示全部楼层
……不懂,围观
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cnCalc计算器论坛

GMT+8, 2024-5-17 18:50 , Processed in 0.044621 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表