|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2015-11-15 21:25:20
|
显示全部楼层
本帖最后由 imjacob 于 2015-11-15 21:33 编辑
谢谢回复。这个给我了一个启示,我印象中似乎由此说法。 但我联想到我 用的atmel9G25的一个板子,他是能跑debian的。 但9G25是armv5的。
然后我查下了资料 https://wiki.debian.org/ArmPorts 这里。
事实应该是这样,debian分成了几个分支,其中ArmHardFloatPort 的分支仅支持armv7以上的。但是像ArmEabiPort 就能支持armv4T以上了。您说的应该是 ArmHardFloatPort。
这样似乎能解释一些问题,我的板子是926ejs,是armv5。但又一想,三星6410和210他都能运行同一个debian,说明也是ArmEabiPort啊,为何我的armv5不能运行。
而且 imx283也是 926ejs的,但无法跑在我的系统上。
这样看来,和arm的指令集是有一定的关系(看下面代码中指明了armel就是这种关系的体现),但是应该和其他还是有很大关系的。
另外,附上 https://code.google.com/p/mini6410-debian/wiki/Tutorial 这里制作debian的方法,我没有找到任何和armel架构之外的信息,编译器版本信息,库相关的信息。
- 4. Creating the rootfs
- Now we will create our root filesystem. Therefore we will need a running Debian, or Debian-based, machine. I used Ubuntu 10.10 32-bit (Maverick) to do this, but every other Debian-based distro should do the job, too. If you're running some othere distro, Mac or Windows I advice you to put a recent Debian or Ubuntu image into a VM, but I won't cover this here.
- You will need debootstrap to create a rootfs. So we'll install it:
- sudo apt-get install debootstrap
- Then we'll create a folder were we'll put everything related to our rootfs:
- cd ~
- mkdir debian-mini6410
- cd debian-mini6410
- Now it's time to decide what you want:
- Debian:
- sudo debootstrap --arch=armel --foreign squeeze rootfs/ http://ftp.us.debian.org/debian
- echo "deb http://ftp.us.debian.org/debian squeeze main" >> rootfs/etc/apt/sources.list
- Emdebian:
- sudo debootstrap --arch=armel --foreign squeeze rootfs/ http://www.emdebian.org/grip/
- echo "deb http://www.emdebian.org/grip/ squeeze main" >> rootfs/etc/apt/sources.list
- Note: Squeeze is still considered to be "testing", so if you want to be 99,999999% sure to have a rocksolid system, replace squeeze by lenny Debian Squeeze is now stable!
- And a little tuning of the created rootfs:
- echo "proc /proc proc none 0 0" >> rootfs/etc/fstab
- echo "mini6410" > rootfs/etc/hostname
- sudo mkdir -p rootfs/usr/share/man/man1/
- sudo mknod rootfs/dev/console c 5 1
- Note: the last line will probably fail, because rootfs/dev/console already exists. Don't know why this happens from time to time, but doing so you're safe ;)
- Next, we'll roll a nice and cute tarball out of our new rootfs:
- cd rootfs
- sudo tar cjf ../debian-mini6410-rootfs.tar.bz2 .
复制代码 |
|