Uboot installation: различия между версиями

Материал из Toshiba AC100 wiki
Перейти к навигации Перейти к поиску
Нет описания правки
 
 
(не показано 11 промежуточных версий 2 участников)
Строка 1: Строка 1:
{{otherlang
| title=Uboot installation
| ru=Uboot_installation_ru
}}
==Warnings==  
==Warnings==  
Ubuntu's 3.1 kernel have issue with usb while booting with u-boot.
Ubuntu's 3.1 kernel have issue with usb while booting with u-boot. This will case wi-fi not to work.
Be accurate. Don't insert SD card too early (to avoid device enumeration issues). Folow this guide step by step.
 
Be accurate.
 
Don't insert SD card too early (to avoid device enumeration issues). Folow this guide step by step.
 
----
----
Added by an Ac100 user . I have never modified a wiki before...
Added by an Ac100 user . I have never modified a wiki before...
Строка 14: Строка 23:
an example
an example
mount /dev/mmcblk1p7 /mnt/root
mount /dev/mmcblk1p7 /mnt/root
Where are we installing ubuntu, in internal or external sd-card ??? -----------------------------------------------------------------------------------------------------------------------------------------------------------------finishing this little adds about errors,I hope someone is able to correct them better then me.
Where are we installing ubuntu, in internal or external sd-card ??? ----------------------------------------------------------------------------------------------------------------------------------------------------------------- finishing this little adds about errors,I hope someone is able to correct them better then me.




==Intro==  
==Intro==  
Main idea is to get SOS partition (64 MB) with boot script and few auxiliary kernels/initrds. Boot script will contain boot menu.
Main idea is to get SOS partition (64 MB) with boot script and few auxiliary kernels/initrds. Boot script will contain boot menu.
Steps:
Steps:
1) Start SOS uboot linux
1) Start SOS uboot linux
On this step you will run SOS linux from ram. No modifications is made on AC100
On this step you will run SOS linux from ram. No modifications is made on AC100


2) u-boot installation
2) u-boot installation
On this step you will install u-boot and convert current linux/android installation for u-boot support. In most cases system is bootable after bootloader switch.
On this step you will install u-boot and convert current linux/android installation for u-boot support. In most cases system is bootable after bootloader switch.


3) Repartitioning
3) Repartitioning
This step is needed for next reasons:
This step is needed for next reasons:
* simplify boot process
* simplify boot process
Строка 33: Строка 47:


4) Install android and Install ubuntu
4) Install android and Install ubuntu
Seems obvious.
Seems obvious.


==Prepare==  
==Prepare==  


1) Download sos-uboot
1) Download sos-uboot
[https://dl.dropboxusercontent.com/u/40761340/Test/sos-uboot-r5-2013-11-10.bin sos-uboot-r5-2013-11-10.bin]
 
[https://www.dropbox.com/s/2lfp17f4h1py7h4/sos-uboot-r5-2013-11-10.bin?dl=1 sos-uboot-r5-2013-11-10.bin]
 
2) Download helpers
2) Download helpers
[https://dl.dropboxusercontent.com/u/40761340/Test/ac100-u-boot-helpers.zip ac100-u-boot-helpers.zip]
 
[https://www.dropbox.com/s/jx930k6n3fposu1/ac100-u-boot-helpers.zip?dl=1 ac100-u-boot-helpers.zip]
 
3) Download u-boot-tools
3) Download u-boot-tools
[https://launchpadlibrarian.net/139556634/u-boot-tools_2013.01.01-4_armhf.deb u-boot-tools_2013.01.01-4_armhf.deb]
[https://launchpadlibrarian.net/139556634/u-boot-tools_2013.01.01-4_armhf.deb u-boot-tools_2013.01.01-4_armhf.deb]
4) Download Ubuntu:
4) Download Ubuntu:
* '''13.10''' installer and packages
 
[https://dl.dropboxusercontent.com/u/40761340/Test/boot_ubuntu.zip boot_ubuntu.zip]
'''DEV NOTE''' boot_ubuntu.zip contains kernel and initrd from .bootimg file and boot script.
[http://cdimage.ubuntu.com/lubuntu/daily-preinstalled/20131016.1/saucy-preinstalled-desktop-armhf+ac100.tar.gz saucy-preinstalled-desktop-armhf+ac100.tar.gz]
 
*DEV NOTE* boot_ubuntu.zip contains kernel and initrd from [http://cdimage.ubuntu.com/lubuntu/daily-preinstalled/20131016.1/saucy-preinstalled-desktop-armhf+ac100.bootimg saucy-preinstalled-desktop-armhf+ac100.bootimg] and boot script.
* '''13.04''' installer and packages (old links are outdated, new links point to ftp.ubuntu-tw.org)
 
[https://www.dropbox.com/s/3hb9m80s3x9e2sc/boot_ubuntu-13.04-preinstalled-desktop-armhf%2Bac100.zip?dl=1 boot_ubuntu-13.04-preinstalled-desktop-armhf+ac100.zip]
 
[http://ftp.ubuntu-tw.org/mirror/ubuntu-cdimage/lubuntu/releases/13.04/release/lubuntu-13.04-preinstalled-desktop-armhf%2bac100.tar.gz lubuntu-13.04-preinstalled-desktop-armhf+ac100.tar.gz]
 
* '''13.10''' installer and packages (old links are outdated, new links point to ftp.ubuntu-tw.org)
 
[https://www.dropbox.com/s/ed2mtnemu6ix18j/boot_ubuntu-saucy-desktop-armhf%2Bac100-2013-06-19.zip?dl=1 boot_ubuntu-saucy-desktop-armhf+ac100-2013-06-19.zip]
 
[http://ftp.ubuntu-tw.org/mirror/ubuntu-cdimage/lubuntu/daily-preinstalled/20130619/saucy-preinstalled-desktop-armhf+ac100.tar.gz saucy-preinstalled-desktop-armhf+ac100.tar.gz]
 
* '''14.04''' installer and packages from '''05-Feb-2014'''
* '''14.04''' installer and packages from '''05-Feb-2014'''
[https://dl.dropboxusercontent.com/u/40761340/Test/boot_ubuntu-trusty-desktop-armhf%2Bac100-2014-02-05.zip boot_ubuntu-trusty-desktop-armhf+ac100-2014-02-05.zip]
 
[https://www.dropbox.com/s/rvyfgnymdquankd/boot_ubuntu-trusty-desktop-armhf%2Bac100-2014-02-05.zip?dl=1 boot_ubuntu-trusty-desktop-armhf+ac100-2014-02-05.zip]
 
[http://cdimage.ubuntu.com/lubuntu/daily-preinstalled/current/trusty-preinstalled-desktop-armhf+ac100.tar.gz trusty-preinstalled-desktop-armhf+ac100.tar.gz]
[http://cdimage.ubuntu.com/lubuntu/daily-preinstalled/current/trusty-preinstalled-desktop-armhf+ac100.tar.gz trusty-preinstalled-desktop-armhf+ac100.tar.gz]


==Start SOS uboot linux==  
==Start SOS uboot linux==  
On PC:
On PC:
1) Start AC100 in recovery mode ( ctrl + esc + power )
1) Start AC100 in recovery mode ( ctrl + esc + power )
a) using nvflash
a) using nvflash
<pre>
<pre>
sudo nvflash --bl sos-uboot-r5-2013-11-10.bin --go
sudo nvflash --bl sos-uboot-r5-2013-11-10.bin --go
</pre>
</pre>
a) using tegrapart
a) using tegrapart
<pre>
<pre>
tegrarcm --bct=your.bct --bootloader=sos-uboot-r5-2013-11-10.bin --loadaddr=0x108000
tegrarcm --bct=your.bct --bootloader=sos-uboot-r5-2013-11-10.bin --loadaddr=0x108000
</pre>
</pre>
AC100 will automatically boot to command prompt
AC100 will automatically boot to command prompt


Строка 70: Строка 110:


On AC100:
On AC100:
1) Start SOS uboot linux
1) Start SOS uboot linux
2) Run installation script and follow instructions
2) Run installation script and follow instructions
<pre>
<pre>
Строка 81: Строка 123:


On PC:
On PC:
1) Format first partition on SD cart to fat
1) Format first partition on SD cart to fat
2) Unpack ac100-u-boot-helpers.zip to SD card
2) Unpack ac100-u-boot-helpers.zip to SD card
3) Safely remove SD card from PC
3) Safely remove SD card from PC
'''DO NOT INSERT SD CARD IN AC100 BEFORE THIS STEP'''
'''DO NOT INSERT SD CARD IN AC100 BEFORE THIS STEP'''
4) Start SOS uboot linux
4) Start SOS uboot linux


On AC100:
On AC100:
1) Insert SD card
1) Insert SD card
2) Mount SD card
2) Mount SD card
<pre>
<pre>
Строка 94: Строка 143:
mount /dev/mmcblk1p1 /mnt/sd
mount /dev/mmcblk1p1 /mnt/sd
</pre>
</pre>
3) Run repartition
3) Run repartition
<pre>
<pre>
Строка 104: Строка 154:


On PC:
On PC:
'''DO NOT INSERT SD CARD IN AC100 BEFORE THIS STEP'''
'''DO NOT INSERT SD CARD IN AC100 BEFORE THIS STEP'''
1) Start SOS uboot linux
1) Start SOS uboot linux


On AC100:
On AC100:
1) Insert SD card
1) Insert SD card
2) Mount SD card
2) Mount SD card
<pre>
<pre>
Строка 114: Строка 168:
mount /dev/mmcblk1p1 /mnt/sd
mount /dev/mmcblk1p1 /mnt/sd
</pre>
</pre>
3) Mount SOS partition
3) Mount SOS partition
<pre>
<pre>
Строка 119: Строка 174:
mount /dev/mmcblk0p1 /mnt/sos
mount /dev/mmcblk0p1 /mnt/sos
</pre>
</pre>
4) Copy boot files
4) Copy boot files
<pre>
<pre>
cp -r /mnt/sd/boot /mnt/sos
cp -r /mnt/sd/boot /mnt/sos
</pre>
</pre>
5) Unmount
5) Unmount
<pre>
<pre>
Строка 128: Строка 185:
umount /mnt/sos
umount /mnt/sos
</pre>
</pre>
6) Power off AC100 (press power button for 8 seconds)
6) Power off AC100 (press power button for 8 seconds)
7) Remove SD card from AC100
7) Remove SD card from AC100
8) Power on AC100. If you done all right, you will get boot menu
8) Power on AC100. If you done all right, you will get boot menu


Строка 137: Строка 197:


On AC100:
On AC100:
1)Use '''Install CWM recovery for CM-10.1''' section from http://code.google.com/p/cm-paz00/wiki/InstallGuide?wl=en with following changes:
 
1) Use '''Install CWM recovery for CM-10.1''' section from http://code.google.com/p/cm-paz00/wiki/InstallGuide?wl=en with following changes:<br />
Don't copy all content of recovery-10.1.img. Copy only kernel and ramdisk:
Don't copy all content of recovery-10.1.img. Copy only kernel and ramdisk:
<pre>
<pre>
Строка 145: Строка 206:
cp /tmp/upacked/initrd*.gz /tmp/p1/boot/initrd.gz
cp /tmp/upacked/initrd*.gz /tmp/p1/boot/initrd.gz
</pre>
</pre>
2) Unmount all
2) Unmount all<br />
3) Powero off
3) Powero off<br />
3) Power on. To run recovery select '''Android Recovery''' in boot menu
3) Power on. To run recovery select '''Android Recovery''' in boot menu<br />
 
'''Important: use this command to copy files'''
<pre>
cp /tmp/upacked/zImage* /tmp/p1/boot/zImage
cp /tmp/upacked/initrd*.gz /tmp/p1/boot/initrd.gz
</pre>
otherwise file names will not match boot script and recovery will not boot.


==Install ubuntu==  
==Install ubuntu==  
===Phase 1: rootfs installation===  
===Phase 1: rootfs installation===  
On PC:
On PC:
1) Format first partition on SD card to fat
1) Format first partition on SD card to fat
2) Copy to SD card
2) Copy to SD card
http://cdimage.ubuntu.com/lubuntu/daily-preinstalled/20131016.1/saucy-preinstalled-desktop-armhf+ac100.tar.gz
http://cdimage.ubuntu.com/lubuntu/daily-preinstalled/20131016.1/saucy-preinstalled-desktop-armhf+ac100.tar.gz
3) Unpack to SD card
3) Unpack to SD card
https://dl.dropboxusercontent.com/u/40761340/Test/boot_ubuntu.zip
https://dl.dropboxusercontent.com/u/40761340/Test/boot_ubuntu.zip
4) Safely remove SD card
4) Safely remove SD card


On AC100:
On AC100:
1) Insert SD card
1) Insert SD card
2) Power on
2) Power on
3) Select installation from SD (fat), follow instructions, don't pay much attantion to errors ;)
3) Select installation from SD (fat), follow instructions, don't pay much attantion to errors ;)


===Phase 2: prepare for u-boot===  
===Phase 2: prepare for u-boot===  
On PC:
On PC:
1) Format first partition on SD card to fat
1) Format first partition on SD card to fat
2) Copy to SD card
2) Copy to SD card
https://launchpadlibrarian.net/139556634/u-boot-tools_2013.01.01-4_armhf.deb
https://launchpadlibrarian.net/139556634/u-boot-tools_2013.01.01-4_armhf.deb
3) Unpack to SD card
3) Unpack to SD card
https://dl.dropboxusercontent.com/u/40761340/Test/ac100-u-boot-helpers.zip
https://dl.dropboxusercontent.com/u/40761340/Test/ac100-u-boot-helpers.zip
4) Safely remove SD card from PC
4) Safely remove SD card from PC


On AC100:
On AC100:
1) Start SOS uboot linux
1) Start SOS uboot linux
2) Insert SD card
2) Insert SD card
3) Mount SD card
3) Mount SD card
<pre>
<pre>
Строка 182: Строка 267:
mount /dev/mmcblk1p1 /mnt/sd
mount /dev/mmcblk1p1 /mnt/sd
</pre>
</pre>
4) Mount target partition (p7 a.k.a UDB)
4) Mount target partition (p7 a.k.a UDB)
<pre>
<pre>
Строка 187: Строка 273:
mount /dev/mmcblk1p7 /mnt/root
mount /dev/mmcblk1p7 /mnt/root
</pre>
</pre>
5) Copy fixed database for flash-kernel
5) Copy fixed database for flash-kernel
<pre>
<pre>
cp /mnt/sd/all.db.fixed /mnt/root/usr/share/flash-kernel/db/all.db
cp /mnt/sd/all.db.fixed /mnt/root/usr/share/flash-kernel/db/all.db
</pre>
</pre>
6) Install u-boot tools and update initramfs
6) Install u-boot tools and update initramfs
<pre>
<pre>
Строка 202: Строка 290:
/mnt/sd/help.sh umount_vfs
/mnt/sd/help.sh umount_vfs
</pre>
</pre>
7) Unmount all
7) Unmount all
<pre>
<pre>
Строка 207: Строка 296:
umount /mnt/root
umount /mnt/root
</pre>
</pre>
8) Power off
8) Power off
9) Power on. Choose "Ubuntu" in boot menu. Installation will continue.
9) Power on. Choose "Ubuntu" in boot menu. Installation will continue.

Текущая версия от 11:45, 27 декабря 2017

Ошибка создания миниатюры: Не удаётся сохранить эскиз по месту назначения

Warnings

Ubuntu's 3.1 kernel have issue with usb while booting with u-boot. This will case wi-fi not to work.

Be accurate.

Don't insert SD card too early (to avoid device enumeration issues). Folow this guide step by step.


Added by an Ac100 user . I have never modified a wiki before...

Some errors are about where/when you have to use mmcblk1 which is the external sd-card of the AC100 and about where/when you have to use mmcblk0 which is internal sd-card of the AC100. Then it would help to understand if this guide want to install both Android and Ubuntu on internal or external sd-card. I have been unable to install Ubuntu neither Android, so I'll not make corrections to this guide, I'll just point attention to some places where it was impossible to go on without change something respect to the guide, or where I have had doubts.To install android as said in this guide and pointing to http://code.google.com/p/cm-paz00/wiki/InstallGuide?wl=en we have a problem about re-partitioning, here in ac100.wikispaces guide we have partioned mmcblk0 (internal sd-card) , while in the install guide of google.com we are installing in mmcblk1(external sd-card). an example from code.google.com guide: Mount external SD card mount /dev/mmcblk0p1 /tmp/sd while mmcblk0p1 is referred to the internal sd-card

To install ubuntu I can point attention about phase 1 ,just adding that it works and it simply goes in loop ,is this error in the errors mentioned ?? About Phase 2 it's impossible to mount /dev/mmcblk1p7 cause it's the external sd-card and in the external sd-card we have only a primary partition with fat filesystem. an example mount /dev/mmcblk1p7 /mnt/root Where are we installing ubuntu, in internal or external sd-card ??? ----------------------------------------------------------------------------------------------------------------------------------------------------------------- finishing this little adds about errors,I hope someone is able to correct them better then me.


Intro

Main idea is to get SOS partition (64 MB) with boot script and few auxiliary kernels/initrds. Boot script will contain boot menu.

Steps:

1) Start SOS uboot linux

On this step you will run SOS linux from ram. No modifications is made on AC100

2) u-boot installation

On this step you will install u-boot and convert current linux/android installation for u-boot support. In most cases system is bootable after bootloader switch.

3) Repartitioning

This step is needed for next reasons:

  • simplify boot process
  • fit new android version
  • allow dualboot

4) Install android and Install ubuntu

Seems obvious.


Prepare

1) Download sos-uboot

sos-uboot-r5-2013-11-10.bin

2) Download helpers

ac100-u-boot-helpers.zip

3) Download u-boot-tools

u-boot-tools_2013.01.01-4_armhf.deb

4) Download Ubuntu:

DEV NOTE boot_ubuntu.zip contains kernel and initrd from .bootimg file and boot script.

  • 13.04 installer and packages (old links are outdated, new links point to ftp.ubuntu-tw.org)

boot_ubuntu-13.04-preinstalled-desktop-armhf+ac100.zip

lubuntu-13.04-preinstalled-desktop-armhf+ac100.tar.gz

  • 13.10 installer and packages (old links are outdated, new links point to ftp.ubuntu-tw.org)

boot_ubuntu-saucy-desktop-armhf+ac100-2013-06-19.zip

saucy-preinstalled-desktop-armhf+ac100.tar.gz

  • 14.04 installer and packages from 05-Feb-2014

boot_ubuntu-trusty-desktop-armhf+ac100-2014-02-05.zip

trusty-preinstalled-desktop-armhf+ac100.tar.gz

Start SOS uboot linux

On PC:

1) Start AC100 in recovery mode ( ctrl + esc + power )

a) using nvflash

sudo nvflash --bl sos-uboot-r5-2013-11-10.bin --go

a) using tegrapart

tegrarcm --bct=your.bct --bootloader=sos-uboot-r5-2013-11-10.bin --loadaddr=0x108000

AC100 will automatically boot to command prompt


u-boot installation

On this step you change ac100 bootloader to u-boot. Installation script will keep kernel/initrd from 6-th partition (LNX).

On AC100:

1) Start SOS uboot linux

2) Run installation script and follow instructions

./switch-to-uboot


Repartitioning

On this step you will form partition scheme for android and ubuntu dual boot.

On PC:

1) Format first partition on SD cart to fat

2) Unpack ac100-u-boot-helpers.zip to SD card

3) Safely remove SD card from PC

DO NOT INSERT SD CARD IN AC100 BEFORE THIS STEP

4) Start SOS uboot linux

On AC100:

1) Insert SD card

2) Mount SD card

mkdir /mnt/sd
mount /dev/mmcblk1p1 /mnt/sd

3) Run repartition

/mnt/sd/apply_partitions_config.sh /mnt/sd/ac100_partitions.cfg /dev/mmcblk0


Setup boot configuration

On this step you will get bootmenu for sos/android/ubuntu, but only sos option will be usable.

On PC:

DO NOT INSERT SD CARD IN AC100 BEFORE THIS STEP

1) Start SOS uboot linux

On AC100:

1) Insert SD card

2) Mount SD card

mkdir /mnt/sd
mount /dev/mmcblk1p1 /mnt/sd

3) Mount SOS partition

mkdir /mnt/sos
mount /dev/mmcblk0p1 /mnt/sos

4) Copy boot files

cp -r /mnt/sd/boot /mnt/sos

5) Unmount

umount /mnt/sd
umount /mnt/sos

6) Power off AC100 (press power button for 8 seconds)

7) Remove SD card from AC100

8) Power on AC100. If you done all right, you will get boot menu


Install android

After this step "Android Recovery" in boot menu became usable.

On AC100:

1) Use Install CWM recovery for CM-10.1 section from http://code.google.com/p/cm-paz00/wiki/InstallGuide?wl=en with following changes:
Don't copy all content of recovery-10.1.img. Copy only kernel and ramdisk:

mkdir /tmp/upacked
unzip /tmp/sd/recovery-10.1.img -d /tmp/upacked
cp /tmp/upacked/zImage* /tmp/p1/boot/zImage
cp /tmp/upacked/initrd*.gz /tmp/p1/boot/initrd.gz

2) Unmount all
3) Powero off
3) Power on. To run recovery select Android Recovery in boot menu
Important: use this command to copy files

cp /tmp/upacked/zImage* /tmp/p1/boot/zImage
cp /tmp/upacked/initrd*.gz /tmp/p1/boot/initrd.gz

otherwise file names will not match boot script and recovery will not boot.

Install ubuntu

Phase 1: rootfs installation

On PC:

1) Format first partition on SD card to fat

2) Copy to SD card

http://cdimage.ubuntu.com/lubuntu/daily-preinstalled/20131016.1/saucy-preinstalled-desktop-armhf+ac100.tar.gz

3) Unpack to SD card

https://dl.dropboxusercontent.com/u/40761340/Test/boot_ubuntu.zip

4) Safely remove SD card


On AC100:

1) Insert SD card

2) Power on

3) Select installation from SD (fat), follow instructions, don't pay much attantion to errors ;)

Phase 2: prepare for u-boot

On PC:

1) Format first partition on SD card to fat

2) Copy to SD card

https://launchpadlibrarian.net/139556634/u-boot-tools_2013.01.01-4_armhf.deb

3) Unpack to SD card

https://dl.dropboxusercontent.com/u/40761340/Test/ac100-u-boot-helpers.zip

4) Safely remove SD card from PC

On AC100:

1) Start SOS uboot linux

2) Insert SD card

3) Mount SD card

mkdir /mnt/sd
mount /dev/mmcblk1p1 /mnt/sd

4) Mount target partition (p7 a.k.a UDB)

mkdir /mnt/root
mount /dev/mmcblk1p7 /mnt/root

5) Copy fixed database for flash-kernel

cp /mnt/sd/all.db.fixed /mnt/root/usr/share/flash-kernel/db/all.db

6) Install u-boot tools and update initramfs

cp /mnt/sd/u-boot-tools_2013.01.01-4_armhf.deb /mnt/root/tmp
/mnt/sd/help.sh mount_vfs
chroot /mnt/root
export PATH=/sbin:/usr/sbin:/bin:/usr/bin
dpkg -i /tmp/u-boot-tools_2013.01.01-4_armhf.deb
update-initramfs -u
exit
/mnt/sd/help.sh umount_vfs

7) Unmount all

umount /mnt/sd
umount /mnt/root

8) Power off

9) Power on. Choose "Ubuntu" in boot menu. Installation will continue.