https://public.etherpad-mozilla.org/p/ohsw2016



Workshop OHSW 2016


3. Topic: U-Boot 2016.11

Goal: bootet auf GTA04 einen Kernel (noch ohne Grafik etc.)

Group: Nikolaus,Andreas

Time: 1-6h

Results: siehe http://git.goldelico.com/?p=gta04-uboot.git;a=shortlog;h=refs/heads/letux-2016.11


4 .Topic: Replicant 6

Goal:  auf GTA04 booten (noch ohne Grafik, ADB, ...)

http://projects.goldelico.com/p/gta04-replicant/page/Replicant-4/

https://redmine.replicant.us/boards/21/topics/12057?page=1

 https://blog.fossencdi.org/drafts/debian-stretch-debootstrap-replicant.html

Group: Lukas, wolfgang, Nikolaus,Thomas D.

Time: 1-2 Tage

Results: Replicant 6 (on kernel 4.8) can be compiled for the GTA04 and boots up to a serial shell and ADB shell. It boots fully up into the GUI if several commands are executed manually:

    

#disable/rename HALs

mv /system/lib/hw/sensors.gta04.so /system/lib/hw/sensors.gta04.so.OFF

mv /system/lib/hw/gps.gta04.so /system/lib/hw/gps.gta04.so.OFF

start installd #exec

start netd #exec

start media #exec

insmod /system/lib/modules/fuse.ko #optinal???!

start vold #exec


http://git.goldelico.com/?p=gta04-replicant.git;a=commit;h=4527deae3802054531f2a67aa7bdf98f7e129f48

http://git.goldelico.com/?p=gta04-replicant-device.git;a=shortlog;h=refs/heads/replicant-6.0

http://git.goldelico.com/?p=gta04-kernel.git;a=shortlog;h=refs/heads/work/lukas/android-4.8


5. Topic: Tinkerphones/Letux Webseiten (Homepage, Wiki, Dokumentation) überarbeiten

Goal: Seiten, Texte, Bilder, Logo usw. durchschauen und Fehler/Lücken bereinigen

Group: j, Lukas, Raphael, Christoph,

Time: 2h

Results: siehe http://www.tinkerphones.org

    - Schreibweise "tinkerphones", nicht "TinkerPhones", "tinkerPhones" oder "Tinkerphones".

    - SVG-Logo angepasst

    - alle Seiten durchgesehen und redigiert

    ToDo:

        - lists.tinkerphones.org im DNS korrekt einrichten für Web-Interface


3. Topic: GTA04 Kernel-Verbesserung (WLAN, Kamera, SGX, USB during boot)

Goal:  eines dieser Themen deutlich vorangebracht (getestete Patches)

Group: Nikolaus,Andreas, j

Time: 1 Tag

Results: konnte zeitlich nicht mehr bearbeitet werden (ein paar neue Ideen wurden ausgetauscht)


7. Topic: Bootprozess

Goal: Kernel direkt aus MLO laden

Group: Lukas, Christoph, Nikolaus, Josua

Time: 3h

Results:

    http://labs.isee.biz/index.php/The_IGEP_X-loader#Summary ist ein u-boot (MLO) der den Kernel ohne 2nd Stage aus einem jffs2 laden kann.

    Falcon Mode im Standard-U-Boot: http://www.denx.de/wiki/pub/U-Boot/MiniSummitELCE2013/2013-ELCE-U-Boot-Falcon-Boot.pdf


6. Topic: debian-installer

Goal: boot to debian-installer from any sdcard

Group: Christoph, Josua

Time: 1h-1Tag

Results:

    Getting the Code: https://wiki.debian.org/DebianInstaller/CheckOut

    How to Build: https://wiki.debian.org/DebianInstaller/Build

    Latest upstream builds: http://ftp.nl.debian.org/debian/dists/testing/main/installer-armhf/current/images/

    How to apply these prebuilt images: http://ftp.nl.debian.org/debian/dists/testing/main/installer-armhf/current/images/hd-media/SD-card-images/README.concatenateable_images

    

    Easiest case is no u-boot on sdcard, it is on flash after all.

    zcat firmware.none.img.gz partition.img.gz > sdcard.img (not useable yet)

    Files need to be prepared with a u-boot header (mkimage)

    Boot Script:

        setenv loadaddrrd 0x86000000

        i2c dev 0

        mmc rescan 0

        fatload mmc 0:1 ${loadaddrfdt} ${devicetree}.dtb

        fatload mmc 0:1 ${loadaddr} uImage

        fatload mmc 0:1 ${loadaddrrd} uInitrd

        setenv bootargs console=${console}

        bootm ${loadaddr} ${loadaddrrd} ${loadaddrfdt}

    

    Tested kernel version: 4.7.0-1-armmp

    Serial console works, display stays dark so far

    

    boot scripts are part of package flash-kernel:

        https://packages.debian.org/stretch/armhf/flash-kernel/filelist

        There already is bootscr.omap, maybe it is enough though chances are it already relies on more recent u-boot

    

    

    Conversation on irc.oftc.net, #debian-in (offtopic)

    Answer-file topic:

        jonas: I have worked on *exactly* that issue: hack official netinst debian-installer image to preseed answers to debconf questions and tune from where it gets packages 

        git://source.homebase.dk/box

    How to search for debian bugs:

        duckduckgo.com: video framebuffer site:bugs.debian.org

    Sample bug report for getting modules included in udebs:

        https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815848

    

    Listing of all kernel modules:

        http://git.goldelico.com/?p=gta04-replicant-device.git;a=blob;f=rootdir/load_modules.sh;h=6ba0f4ef28af77108dff8064a5becf8f7b69d5f8;hb=refs/heads/next

    

    Created Bugs:

        https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847770

        https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847775 - solved in 4.9

        https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847779

        

    TODO:

        - add ompadrm udeb

        - add mtd flash udeb

        - add touchscreen udeb

        - 


2. Topic: F-Droid

Goal:  aus den Quellen bauen und in Replicant 6.0 integrieren

Group:wolfgang, Lukas, j

Time: 1h

Results: Integration des Repos von CopperheadOS funktioniert nicht ohne Anpassungen. Es wird auch von CopperheadOS seit heute nicht mehr verwendet.

                Eventuell muss das Android SDK separat konfiguriert werden, was das Kompilieren innerhalb von Replicants Quellcode unmöglich macht.


4. Topic: Replicant 6.0 Toolchain

Goal:  mehr Debian Pakete nutzen

Time: 1/2 Tag

Group:wolfgang,  Lukas

Results:


4. Topic: Diskussion Replicant 6.0 Software Rendering

Goal: neue Lösungansätze finden

Time: 2h

Group: wolfgang,Lukas

Results: Mögliche Optionen: dynamisches switching zwischen libGLES_andoid.so (für GLESv1) und llvmpipe (für GLESv2), reduktion der bildschirmauflösung, um bessere performance mit LLVMPIPE zu erzielen


-. Topic: Replicant 4.2 (wieder) auf dem Server bauen

Goal: mrep-Script läuft und baut rootfs

Group: Nikolaus (nicht als Gruppe bearbeitet)

Time: 2h

Results: (nebenbei weitergemachti) http://git.goldelico.com/?p=gta04-replicant.git;a=shortlog;h=refs/heads/mrep4mac

    nach Wechsel auf gcc-4.6 und löschen des out-Verzeichnisses scheint es weitgehend zu funktionieren

    (hängt nur noch an einer fehlenden Option des BSD-sed -> gsed nehmen)


3. Topic: Debian Kernel-Paket (udeb?)

Goal: Letux-Kernel unter Debian bauen (mit den Scripts im Letux-Kernel)

Group: Josua, Nikolaus, Andreas

Time: 3h

Results:


Nebenlaufig: Doku

Goal: Mehr Info im Wiki

Results: (einige Seiten für Letux-Kernel und letux-U-Boot nebenher überarbeitet)


Offtopic: CTF besuchen


1. Topic: einen miniaturisierten Fahrrad-GSM/GPS-Tracker bauen

Goal: Konzept erstellen, Bauteile/Schaltplan/Software auswählen bzw. anfangen

https://github.com/akemnade/om-on-bike <-- existing things

Group: Christoph, Nikolaus, Andreas, Thomas D.

Time: 2h

Results:

    Die Hardware soll in einen Fahrradrahmen eingebaut und dort mind. 1 Monat via Akku mit Strom versorgt werden.

    HW-Konzept: GPS-Modul + GSM-Modul + BLE + Beschleunigungssensor

    SW-Konzept: CPU in einem der Module mitnutzen um die Ablaufsteuerung zu übernehmen.



(Topic: Grasp.-sensing Jolla

Goal: MPR121 über I2C auslesen, Grif zur Auth verwenden.

Group: (Raphael, Christoph)

Time: 3 - 999 h

 Result:

)