Nokia N810

Build OpenWRT


1. Build kernel、rootfs

$ git clone https://github.com/mirrors/openwrt.git
$ cd openwrt
$ git checkout 2f3210027ca1393766b0293b1bdd9fc6a13e88d7
$ git branch n800
$ git checkout n800
$ make defconfig
$ make menuconfig
  Target System -< TI OMAP-24xx
  Target Profile -< Nokia n810 (GUI)
  kmod-crypto-core -< kmod-crypto-xts

$ make
  GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
  -_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
  +#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)
  + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
  +#endif

  '::close' has not been declared
  #include <unistd.h>

2. Flash kernel

C:\> flasher-3.5 -k openwrt-omap24xx-zImage -f -R

3. 解壓縮roofs到SDCard根目錄(分區1,請使用ext4)

$ sudo mke2fs -t ext4 /dev/sdX1
$ sudo tune2fs -c0 -i0 /dev/sdX1
$ sudo mount /dev/sdX1 /mnt
$ sudo tar -xzf bin/omap24xx/openwrt-omap24xx-rootfs.tar.gz -C /mnt
$ sudo umount /mnt


返回上一頁