project:kernellab
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
project:kernellab [2019/07/16 10:20] – delete page move to start page maxfx | project:kernellab [2020/04/19 16:31] (current) – maxfx | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{template>: | ||
+ | |||
+ | ~~META: | ||
+ | status = suspend | ||
+ | & | ||
+ | ~~ | ||
+ | ======= The KernelLAB ======= | ||
+ | |||
+ | * **A Lab for everyone to participate in** | ||
+ | |||
+ | * Kernel to every family | ||
+ | |||
+ | * Provide more insight about the architecture of kernels, operating systems, network layers, and porting | ||
+ | |||
+ | * Porting or running kernels on android phones, tablets and other various embedded systems | ||
+ | |||
+ | * Developing our own Kernel, new operating systems, Reverse Engineering, | ||
+ | |||
+ | |||
+ | ===== Contact us! ===== | ||
+ | |||
+ | Core Team to table -> interested | ||
+ | |||
+ | |||
+ | ====== BSD Way ====== | ||
+ | |||
+ | * Why BSD ? THe BSD kernel has many interesting features for hacking and tuning, as well as optimization | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | ===== Project - Making a new FreshPorts - ITS DONE ===== | ||
+ | |||
+ | ==== Goals and ideas of this project ==== | ||
+ | |||
+ | * More information about packages for FreeBSD and for users other operation system. | ||
+ | |||
+ | * Record is on page talknight and slide is here: https:// | ||
+ | |||
+ | * Freebsd-how-to-make-a-new-package: | ||
+ | |||
+ | |||
+ | ===== Project - Goodbye android! - ITS DONE ===== | ||
+ | |||
+ | ==== Goals and ideas of this project | ||
+ | * In this project we attempt to boot and install BSD on the Medion P10356 tablet, which houses a Intel® Atom™ Z3735F CPU (Bay Trail) and comes with Android installed by default | ||
+ | |||
+ | ==== Challanges ==== | ||
+ | * Altough the tablet houses an x86_64 architecture CPU, it does not expose its UEFI menu and hence does not allow anyone to boot from an external drive. | ||
+ | |||
+ | ==== How we hacked the device ==== | ||
+ | {{ : | ||
+ | |||
+ | After countless odd attempts to enter the UEFI menu (such as attaching an external keyboard and pressing a bunch of F- keys), we believed that we had to replace the Android bootloader ([[https:// | ||
+ | |||
+ | |||
+ | Our plan was to fix the semi-working TWRP recovery by unpacking it, and substituting the kernel image with that of the stock recovery. Typically, whenever flashing a recovery or kernel to the tablet, we would reboot the device into bootloader mode, either by holding down the volume down button at start, or simply executing: | ||
+ | |||
+ | < | ||
+ | |||
+ | via adb. This would typically put the tablet into " | ||
+ | |||
+ | < | ||
+ | Entering DnX mode. | ||
+ | Awaiting fastboot command... | ||
+ | </ | ||
+ | |||
+ | Meaning the device entered "Intel DnX mode" which is a mode that exposes a minimal fastboot interface and allows the [[https// | ||
+ | |||
+ | Since we simply wanted to flash our patched recovery, we attempted to execute: | ||
+ | |||
+ | < | ||
+ | fastboot flash recovery patched-recovery.img | ||
+ | </ | ||
+ | |||
+ | However, as already mentioned, the fastboot interface exposed by the Intel DnX mode is limited, and thus the command failed. | ||
+ | |||
+ | Here is where the fun begins... | ||
+ | |||
+ | If flashing recovery from the DnX mode was not an option, perhaps booting into it might work, and so we tried: | ||
+ | |||
+ | < | ||
+ | fatboot boot patched-recovery.img | ||
+ | </ | ||
+ | |||
+ | And suprise suprise, while we did not boot into TWRP, we booted into something much nicer, and that is, the devices UEFI menu :) | ||
+ | |||
+ | From here it was a simple piece of cake. The first thing we did was to disable quick boot and quiet boot. Now the device would no longer display the MEDION logo upon boot, but rather a boot screen that allows you to enter the UEFI settings by pressing ESC at boot. Then we flashed a FreeBSD, Linux distribution onto our SD card and attempted to boot into it. Oddly, that did not work (perhaps we didn't use the correct partition table?), however we never found out since we accidentally broke the sdcard slot after that (Good job CTXz...). Desperate to continue we searched for a USB hub (the only USB 2.0 port was already reserved by our keyboard as the touchscreen doesn' | ||
+ | |||
+ | TL;DR; | ||
+ | |||
+ | We accidentally discovered that you can boot into the hidden UEFI settings by attempting to boot into a boot- or recovery image in the DnX fastboot mode. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | ==== Steps to enter the UEFI settings on your MEDION P10356 ==== | ||
+ | |||
+ | - Reboot into fastboot mode | ||
+ | - Flash the following TWRP image: https:// | ||
+ | - Boot into TWRP | ||
+ | - Reboot into fastboot mode once again, this time the tablet will boot into Intel DNX fastbot mode | ||
+ | - Attempt to boot into the TWRP image (altough any other image will do too) via ' | ||
+ | - The tablet should now enter the UEFI settings | ||
+ | - Optionally, from the settings you may disable "UEFI fast boot", which will allow you to enter the BIOS by pressing ESC during boot | ||
+ | |||
+ | ==== Restoring the UEFI Firmware ==== | ||
+ | {{ : | ||
+ | |||
+ | While we attempted to install FreeBSD, OpenBSD and Linux onto the tablet we had accidentally disabled the internal graphics card within the UEFI settings (this comes from the fact that users should not even be able to access the UEFI settings). Unfortunately, | ||
project/kernellab.1563272455.txt.gz · Last modified: 2019/07/16 10:20 by maxfx