Sosboot-ng: различия между версиями

Материал из Toshiba AC100 wiki
Перейти к навигации Перейти к поиску
м (fix download layout)
 
(не показано 7 промежуточных версий 2 участников)
Строка 1: Строка 1:
=Description=
==Sosboot-ng guide==
New generation of sosboot recovery tool


=Where to download source and binary=
==Description==
* [https://github.com/ac100-ru/sosboot/tree/sosboot-ng current source location]
New generation of [[sosboot]] R5 recovery tool. <br/>
* [https://drive.google.com/folderview?id=0BzHUnWusu2ztNFFuNEJTeGdZTkE&usp=sharing#list current binaries location]
SOSBoot is the AC100 Swiss Army knife. It's a minimalistic self containing linux system designed to solely fit inside the Recovery partition of the AC100.<br/>
Currently SOSBoot consist of five parts: Linux kernel, Buildroot rootfs, U-Boot bootloader, packing tools and custom scripts


=Current features=
==Where to download source and binary==
* [https://github.com/ac100-ru/sosboot/tree/sosboot-ng Current sosboot-ng source code location]
* [https://drive.google.com/folderview?id=0BzHUnWusu2ztRWM2cFlQVFJjcW8&usp=sharing#list Current sosboot-ng binaries location]
 
==Current features==
* Include upstream kernels (stable and mainline)
* Include upstream kernels (stable and mainline)
* Have serial console working with getty login
* Have serial console working with getty login
* Kernel config have all AC100 hardware enabled for testing
* Kernel config have all AC100 hardware enabled for testing
* Working sysV init
* Include android installer
* Include more tools to test
* Include more tools to test
** usbtools
** usbtools
Строка 15: Строка 21:
** bluez-utils
** bluez-utils
** alsa-utils
** alsa-utils
==How to run binary==
* Install tegrarcm opensource tool from Nvidia
** [https://github.com/NVIDIA/tegrarcm Tegrarcm source code location]
* Load directly to AC100 ram from PC with tegrarcm tool
** Connect AC100 to PC with miniUSB and start APX mode CTRL+ESC+POWER<pre># tegrarcm readbct --bct=ac100.bct&#10;# tegrarcm --bct=ac100.bct --bootloader=<sosboot-ng binary name .bin> --loadaddr=0x108000</pre>
==Included scripts==
# Multifunctional script to switch from factory proprietary fastboot bootloader to U-Boot
## Name: switch-to-uboot
### Location: <pre># /switch-to-uboot</pre>
### This script is SFX archive you can extract its content to some folder this way, for example if you need run individual parts of script:<pre># mkdir /tmp/switch&#10;# /switch-to-uboot --noexec --keep --target /tmp/switch/</pre>
# Script to simplify installation of Android system with gpt partition table and U-Boot bootloader
## android installer
### Location: <pre># /installer</pre>
==How get sources and compile it manually==
# Install git-repo tool if you dont have one yet:<pre>$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo&#10;$ chmod a+x ~/bin/repo</pre>
# Create working folder and move inside it<pre>$ mkdir sosboot&#10;$ cd sosboot</pre>
# Init git-repo manifest branch
## For development branch: <pre>$ repo init -u git://github.com/ac100-ru/sosboot-manifests.git -b for-next</pre>
## or for stable branch:<pre>$ repo init -u git://github.com/ac100-ru/sosboot-manifests.git -b sosboot-ng</pre>
# Download sources:<pre>$ repo sync</pre>
# Compile sources:<pre>$ ./build_all</pre>
# Clean whole sources if want to recompile:<pre>$ ./clean_all</pre>
===Advanced topics===
* If you need recompile for example only kernel
<pre>
$ ./scripts/clean_sosboot
$ ./scripts/clean_sos-uboot
$ ./scripts/clean_kernel
$ ./build_all
</pre>
== См. также ==
* [[SOSBoot: настройка Wi-Fi|Настройка Wi-Fi в SOSBoot]]

Текущая версия от 05:38, 27 июля 2015

Sosboot-ng guide

Description

New generation of sosboot R5 recovery tool.
SOSBoot is the AC100 Swiss Army knife. It's a minimalistic self containing linux system designed to solely fit inside the Recovery partition of the AC100.
Currently SOSBoot consist of five parts: Linux kernel, Buildroot rootfs, U-Boot bootloader, packing tools and custom scripts

Where to download source and binary

Current features

  • Include upstream kernels (stable and mainline)
  • Have serial console working with getty login
  • Kernel config have all AC100 hardware enabled for testing
  • Working sysV init
  • Include android installer
  • Include more tools to test
    • usbtools
    • wireless-tools
    • bluez-utils
    • alsa-utils

How to run binary

  • Install tegrarcm opensource tool from Nvidia
  • Load directly to AC100 ram from PC with tegrarcm tool
    • Connect AC100 to PC with miniUSB and start APX mode CTRL+ESC+POWER
      # tegrarcm readbct --bct=ac100.bct
      # tegrarcm --bct=ac100.bct --bootloader=<sosboot-ng binary name .bin> --loadaddr=0x108000

Included scripts

  1. Multifunctional script to switch from factory proprietary fastboot bootloader to U-Boot
    1. Name: switch-to-uboot
      1. Location:
        # /switch-to-uboot
      2. This script is SFX archive you can extract its content to some folder this way, for example if you need run individual parts of script:
        # mkdir /tmp/switch
        # /switch-to-uboot --noexec --keep --target /tmp/switch/
  2. Script to simplify installation of Android system with gpt partition table and U-Boot bootloader
    1. android installer
      1. Location:
        # /installer

How get sources and compile it manually

  1. Install git-repo tool if you dont have one yet:
    $ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
    $ chmod a+x ~/bin/repo
  2. Create working folder and move inside it
    $ mkdir sosboot
    $ cd sosboot
  3. Init git-repo manifest branch
    1. For development branch:
      $ repo init -u git://github.com/ac100-ru/sosboot-manifests.git -b for-next
    2. or for stable branch:
      $ repo init -u git://github.com/ac100-ru/sosboot-manifests.git -b sosboot-ng
  4. Download sources:
    $ repo sync
  5. Compile sources:
    $ ./build_all
  6. Clean whole sources if want to recompile:
    $ ./clean_all

Advanced topics

  • If you need recompile for example only kernel
$ ./scripts/clean_sosboot
$ ./scripts/clean_sos-uboot
$ ./scripts/clean_kernel
$ ./build_all

См. также