The is the quick start-up guide for booting Android on the QorIQ LS1043xARDB board.

The requirement for this demo is listed as below, both including hardware and software.

Hardware:

 A LS1043ARDB or LS1046ARDB board

 A Nvidia G210 PCIe x1 video card

 An Atheros ATH10K WIFI module

 An 8GB SD card

 A USB mouse

 A USB keypad

 A monitor

All these devices are shown as below:



Software:

 Android-7.1.2-LS104xARDB.iso

In this demo, only a single software image is used. What it requires is to clone this image to the ready 8GB SD card.

Here two methods are provided to write the Android-7.1.2-LS104xARDB.iso to the SD card:

 Using an Ubuntu PC:

$ dd if=Android-7.1.2-LS104xARDB.iso of=/dev/sdb bs=4M;sync

 Using the LS104xARDB board, boot it up with SDK kernel and ramdisk, mount the directory where the Android-7.1.2-LS104xARDB.iso is from the Ubuntu PC to a directory named rootfs in this board:

root@ls1043ardb:~/rootfs# dd if=Android-7.1.2-LS104xARDB.iso of=/dev/mmcblk0 bs=4M;sync

When U-Boot boots up, copy-paste the following command list to the prompt of U-Boot, then Android system will boot up, and boot log is attached in file Android-boot-log.txt.

 For LS1043ARDB:

setenv kerneladdr 0x82000000;setenv ramdiskaddr 0x84000000;setenv dtbaddr 0x83000000;setenv bootargs root=/dev/ram console=ttyS0,115200 nouveau.atomic=1 androidboot.console=ttyS0 androidboot.hardware=layerscape androidboot.dm_verity=disabled androidboot.selinux=permissive video=nouveaufb:800x600@60;ext2load mmc 0:4 $kerneladdr /uImage.android;ext2load mmc 0:4 $ramdiskaddr /ramdisk.img.u-boot;ext2load mmc 0:4 $dtbaddr /fsl-ls1043a-rdb-sdk.dtb;bootm $kerneladdr $ramdiskaddr $dtbaddr

 For LS1046ARDB:

setenv kerneladdr 0x82000000;setenv ramdiskaddr 0x84000000;setenv dtbaddr 0x83000000;setenv bootargs root=/dev/ram console=ttyS0,115200 nouveau.atomic=1 androidboot.console=ttyS0 androidboot.hardware=layerscape androidboot.dm_verity=disabled androidboot.selinux=permissive video=nouveaufb:800x600@60;ext2load mmc 0:4 $kerneladdr /uImage.android;ext2load mmc 0:4 $ramdiskaddr /ramdisk.img.u-boot;ext2load mmc 0:4 $dtbaddr /fsl-ls1046a-rdb-sdk.dtb;bootm $kerneladdr $ramdiskaddr $dtbaddr

when Android login interface shows up on the monitor, use USB mouse to login Android.

Then go to setting to enable WIFI, and connect to WIFI router with password.

And from the console, change to root:

layerscape:/ $ su

Check if the Ethernet and WIFI are up?

layerscape:/ # ifconfig

eth6      Link encap:Ethernet  HWaddr 00:04:9f:04:4d:52

          UP BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:0 TX bytes:0

          Memory:1af0000-1af0fff

wlan0    Link encap:Ethernet  HWaddr 00:0e:8e:5a:8d:7a

          inet addr:192.168.0.212  Bcast:192.168.1.255  Mask:255.255.254.0

          inet6 addr: fe80::20e:8eff:fe5a:8d7a/64 Scope: Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:362 errors:0 dropped:0 overruns:0 frame:0

          TX packets:268 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:365110 TX bytes:37777

Bring down Ethernet port:

layerscape:/ # ifconfig  eth6 down

Set up default route table entry:

layerscape:/ # ip rule add from all lookup main pref 0

And set up default gateway IP for wlan0:

layerscape:/ # busybox route add default gw 192.168.0.1 dev wlan0

layerscape:/ # ping www.baidu.com

PING www.a.shifen.com (61.135.169.125) 56(84) bytes of data.

64 bytes from 61.135.169.125: icmp_seq=2 ttl=54 time=2.41 ms

64 bytes from 61.135.169.125: icmp_seq=3 ttl=54 time=1.77 ms

Now Android system can surf internet.

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android(安卓)App扫描二维码功能的实现
  2. Android中的代码优化
  3. Android(安卓)preference与ActivityGroup
  4. Android开发AsyncTask异步处理任务使用方
  5. Android(安卓)跨进程传输大图片
  6. Android实现多个跑马灯效果,多个文本框Tex
  7. Android线程的一些问题
  8. 在Eclipse中加入Android源码
  9. 【腾讯开源】Android性能测试工具APT使用
  10. android用贝塞尔曲线完成viewpager轮播指