nyuuzyou/wikis huggingface dataset:
Samsung Galaxy J6 2018 (samsung-j6lte)

Samsung Galaxy J6, also known as Samsung Galaxy On6, is an Exynos 7870 device released by Samsung in 2018.
== Contributors ==
* naproxen
== Users owning this device ==
== How to enter flash mode ==
When the phone is powered off, insert the USB cable while holding the and buttons to boot into download mode. A turquoise colored screen will appear, asking for confirmation. Press to confirm. Your device is ready for flashing via a front-end such as Odin or Heimdall.
To boot into recovery, hold the and buttons. 
== Installation ==
=== Prerequisites ===
Make sure your phone:
* Has its bootloader unlocked.
=== Preparation ===
Choose the following in the pmbootstrap init wizard:
 Vendor: samsung
 Device codename: j6lte
To proceed with the installation run:
 $ pmbootstrap install
This will begin preparing your installation in your host computer.
=== Flashing ===
After the installation process is completed, get your phone booted into download mode, Then run:
 $ pmbootstrap flasher flash_kernel
The kernel gets flashed to your device. Now, the device will reboot automatically. Hold the key combination to reboot into download mode. Then run:
 $ pmbootstrap flasher flash_rootfs
The rootfs is flashed and the device gets rebooted.
It should reboot to postmarketOS now.
== Partial features ==
=== Battery ===
The fuelgauge driver (reports the charge percentage) works fine, but there's no charger driver which is responsible for reporting charge status and control.
=== Screen ===
Display works with simple-framebuffer, so brightness control is non-functional. Samsung DECON/DSIM driver for Exynos 7870 is a work-in-progress, which will properly initialize and use the display.
== Problems ==
=== USB Networking ===
At least on some operating systems, the host doesn't receive network packets from the device, unless the host sends packets to the device. Due to this behavior, SSH (among other things) doesn't work well. A workaround is to have ping -Aq <IP> run in the background while you interact with the device (replace <IP> with the device IP address).
=== Wi-Fi ===
Wi-Fi behaves very erratically (practically unusable) when the SDIO is probed in DMA mode. The driver fails to communicate with the SDIO, reporting timeout errors. As a workaround, the SDIO is forced to be probed in PIO mode.
== Debugging (retrieving kernel logs) ==
Read this.
== Downstream Kernel ==
A port based on the downstream kernel exists which has been archived in favor of the mainline kernel. More information is available in older revisions of this page.
== See also ==
 Initial merge request
 (Downstream → Mainline)
Samsung Galaxy J7 (2016) (samsung-jxelte)

== Contributors ==
* Error1001
== Users owning this device ==
== Activate Sideload ==
=== Install TWRP ===
Download TWRP for j7xelte.
Hold down the button + the button + the button from a power off state to get into Odin mode. Once the Odin screen is open, press the button.
 heimdall flash --RECOVERY twrp-3.2.1-0-j7xelte.img
=== Start TWRP ===
In case TWRP didn't start automatically, hold down the button + the button + the button from a power off state to boot to TWRP.
== Installation ==
 pmbootstrap init
 pmbootstrap install --android-recovery-zip
 pmbootstrap flasher --method=adb sideload # Remember to unmount all partitions first.
Once pmbootstrap command is executed, enable sideload in TWRP from Advanced -> Sideload.
== Status of interfaces ==
* none gets stuck loading
* fbkeyboard gets stuck loading
* plasma-mobile gets stuck loading, requires deviceinfo_gpu_accelerated="true" to show up as an option
* plasma-desktop boots but does not get past login
* phosh gets stuck loading, requires deviceinfo_gpu_accelerated="true" to show up as an option
* gnome-mobile boots and gets past login, but cannot find Wifi connections, does not allow to enable virtual keyboard past login, cannot close popups
* sxmo-de-dwm cannot find Wifi connections (also takes time to load, which is possibly because it is looking for a driver for wireless connectivity)
* sxmo-de-sway stuck loading
== Serial debugging ==
This device has an S2MU005 MUIC, which exposes UART when a cable with either 150K or 619K resistance is plugged in. See the serial debugging for general information on this topic.
In order to halt S-BOOT and get access to its console, you must hold volume down while the device is powering on, in addition to mashing the enter button in your serial console. The easiest way to do this is to first remove the battery, connect the USB debug cable, hold power down, then start spamming enter in your console while you reinsert the battery.
Once you have gained access to the S-BOOT console, you can configure the bootloader to persistently enable UART logging from the booted kernel:
 S-BOOT # setenv CMDLINE console=ttySAC2,115200
 S-BOOT # saveenv
 S-BOOT # load_kernel
 S-BOOT # boot
== See also ==
* Initial merge request
* 
* 
*
Samsung Galaxy J7 (T-Mobile) (samsung-j7eltetmo)

== Contributors ==
* Nbe1233
== Users owning this device ==
== How to enter flash mode ==
Hold down the Home button + Power Button + Volume Down Button to get into Download mode.
Heimdall does not work; so install through adb sideloading
== Installation ==
Follow the installation guide, and run: pmbootstrap install --android-recovery-zip and pmbootstrap export. 
Then run adb sideload /tmp/postmarketOS-export/pmos-samsung-j7eltetmo.zip while your phone is in sideload mode.
Like the Samsung Galaxy J7 (2016) msm-fb-refresher is a required package to run user interfaces other than weston
== See also ==
* Initial merge request
Samsung Galaxy J7 (samsung-j7elte)

Samsung Galaxy J7 (codenamed j7elte) was a popular entry-level smartphone from 2015. It had many different iterations over the years and ports to postmarketOS has been made to them. This is my attempt on the original J7.
== Contributors ==
* KrakinTheKonsole (Kabir Akzaman) 
== Users owning this device ==
== Development status ==
=== Sources used ===
Lineage OS kernel sources for Exynos 7580 Devices
=== Compiles ===
* Linux kernel 3.10.108
* Device information
=== What's working ===
* Hardcoded kernel arguments
* Making a PMOS Recovery zip
* Flashing using custom recovery 
* Showing splash screen during boot
* Starting full X-Session and using the UI with USB-OTG Keyboard and Mouse
* Running LXQt or SXMO
=== What's wrong ===
* When the phone boots it shows the splash screen meaning the rendering is working. But it crashes and force reboots soon after. - This is probably caused due to the fact that the init is messed up because the bootloader passes the wrong kernel arguments. The ones that are used to boot android. - But this issue has been fixed
* Being unable to mount the system partitions in TWRP to check logs or modify the system. - This is a common issue in many PMOS builds.
* Display manager not showing up after starting up
* WiFi and Bluetooth hardware not being detected or initialized.
* LightDM Failing to start properly. Causing it to not boot into desktop automatically
== How to enter flash mode ==
Power down the device first.
==== ODIN/Heimdall Mode ====
To enter ODIN/Heimdall flashing mode, press and hold + + buttons until a warning screen pops up. Then press Volume Up button to enter ODIN mode.
==== Recovery (Stock/Custom) Mode ====
To enter Recovery (Stock/Custom) mode, press and hold + + buttons until the Recovery splash screen pops up.
== Installation ==
Perform the standard installation method provided by PostMarket OS Installation Guide
But keep in mind that...
== See also ==
Lineage OS kernel sources for Exynos 7580 Devices
Samsung J7 T-Mobile device page
Samsung Galaxy J8 2018 (samsung-j8y18lte)

== Users owning this device ==
== How to enter flash mode ==
* Recovery: Power on the device by holding and .
* Download: Hold and while plugging the device to a computer with an USB cable.
== Unlocking the bootloader ==
# Enable developer mode by tapping on the build number seven times in Settings → About phone → Software information
# Return to the main settings page and go to the developer options
# In developer options, enable OEM unlocking. Make sure you have an internet connection if it doesn't show up.
== Installation ==
# Unlock the bootloader if not done.
# Select j8y18lte and Gnome UI with pmbootstrap init
# Generate the rootfs with pmbootstrap install to install postmarketOS to the phone or pmbootstrap install --sdcard /dev/sdX to install it on an SD card.
# Generate the flashable images with pmbootstrap export. They will be stored in /tmp/postmarketOS-export, or you can specify another location like this: pmbootstrap export /home/user/Downloads/pmos
# Reboot into download mode
# Flash postmarketOS with heimdall flash --BOOT /tmp/postmarketOS-export/boot.img --SYSTEM /tmp/postmarketOS-export/samsung-j8y18lte.img (replace the paths if necessary). If you installed to an SD card, specify only the BOOT argument. Also you may choose the bigger USERDATA partition for the system image.
# The phone should reboot straight into postmarketOS.
== See also ==
* Device specifications
* 
*
Samsung Galaxy K Zoom (samsung-m2alte)

== Contributors ==
* 
== Users owning this device ==
== How to enter flash mode (download mode) ==
 Hold + + . Press when prompted.
Alternatively, try adb reboot download.
== Enable USB Debugging ==
# Open Settings > About device
# Tap Build number 7 times
# Return to Settings > Developer options (newly appeared!)
# Enable USB debugging
== Installation ==
== Notes ==
Appears to be very similar hardware to the Galaxy Note 3 Neo SM-N750 (hl3g).
=== MUIC ===
According to the modified downstream kernel (kzoom-katkernel config), this device has a Maxim Integrated MAX77803 MUIC. According to the Micro-USB_Interface_Controller page, this is the same MUIC as in the Samsung_Galaxy_Note_3_(samsung-hlte). I also found driver code for this MUIC in LineageOS/android_kernel_samsung_exynos5410
== See also ==
* Exynos mainline porting
* Kernel patches in progress (stalled?) for Exynos 5260
* Mainline device tree
* modified downstream kernel in XDA forum post [KERNEL] [ROOT] [CWM Recovery] [Samsung Galaxy K Zoom] KatKernel-3.4.104 (Potentially useful because I can't find official downstream kernel sources, and TWRP and LineageOS don't have sources for this device.) (kernel source on GitHub) (backup fork)
* drivers for MAX77803 MUIC in LineageOS/android_kernel_samsung_exynos5410
Samsung Galaxy M52 5G (samsung-m52xq)

== Contributors ==
* 19atlas
== Users owning this device ==
== How to enter flash mode ==
* Recovery mode: Hold volume up, power button and connect USB cable to PC
* Download mode(Odin/Heimdall): Hold volume down, power button and connect USB cable to PC
== Installation ==
* pmbootstrap install --android-recovery-zip
* pmbootstrap flasher --method=adb sideload
== See also ==
* Device Info HW page
* LineageOS Wiki
Samsung Galaxy Note (samsung-q1)

== Contributors ==
== Users owning this device ==
== How to enter flash mode ==
== Installation ==
See Samsung_Galaxy_SII_(samsung-i9100)#Installation
== Bluetooth ==
Bluetooth pairs and connects, but there is nothing working.
== Notes ==
There seems to be an u-boot port for this SoC: https://github.com/MathieuMorrissette/Cotton-Candy
https://github.com/u-boot/u-boot/blob/master/arch/arm/dts/exynos4210.dtsi
the dts for the SoC is upstream, but not for the n7000.
Research on emulating the bootROM: https://fredericb.info/2018/03/emulating-exynos-4210-bootrom-in-qemu.html
== See also ==
* Samsung Galaxy SII (samsung-i9100)
* Initial merge request
Samsung Galaxy Note 10+ (Exynos) (samsung-d2s)

== Contributors ==
* Chaosleo07
== Users owning this device ==
== How to enter flash mode ==
Press and hold + while plugging it in the Computer. Then click to confirm.
== Unlocking the Bootloader ==
!!!WARNING!!! 
This will reset your device to Factory settings and blow the Knox E-Fuse! You have been warned. 
Samsung made this easy (thankfully): Reboot into Download mode (hold down Vol+ and Vol- while plugging it into a computer) and hold down Vol+.
This way, you can also relock the bootloader (with the only benefit being that the message at the Beginning is gone, no more Knox)
== Installation ==
/* Not yet */
== See also ==
Samsung Galaxy Note 10.1 (samsung-p4note)

== Contributors ==
* Daniel Sosa
== Users owning this device ==
== Issues ==
=== Audio ===
The exynos 4412 quad has audio support, but it is hit-or-miss and here it is very dodgy, with KDE not making a sound
=== Charging ===
Charging works, but is slow. You'll probably need to turn the display off for the charge to increase.
On GNOME, the charging state icon doesn't change until you restart the device.
=== WiFi ===
If your device is N8020, you'll likely need to run this command to be able to connect to WiFi networks. Otherwise, WiFi is functional.
$ sudo ln -sf /lib/firmware/brcm/brcmfmac4334-sdio.samsung,i9305.txt /lib/firmware/brcm/brcmfmac4334-sdio.samsung,n8010.txt
=== Non-functional hardware ===
The S-Pen is currently not working.
== Maintainer(s) ==
* k2luawaken
== How to enter flash mode ==
Press and on power up.
Volume down is the side of the volume rocker that is closest to the power button.
== Installation ==
use "pmbootstrap install --sdcard=/dev/XXX" (which is your sd card) to install onto an sd card, use "pmbootstrap export" to grab the boot.img (should fit, if not then something is wrong) and flash using twrp
== Mainline Kernel ==
Mainline kernel support matrix: https://viciouss.github.io/static_pages/galaxy_note_10_1_mainline/
Blog post about Mainlining efforts: https://viciouss.github.io/2020/11/18/note-10_1-journey/
XDA forum post about the mainline kernel work being done on this device: https://forum.xda-developers.com/galaxy-note-10-1/general/mainline-n8000-progress-t3964980
Git Repositories for the work being done by Viciouss to mainline this device and get Android running on it: https://github.com/Viciouss?tab=repositories
Mainline DTS: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/log/arch/arm/boot/dts/exynos4412-p4note-n8010.dts
The accepted commit which added mainline support for this device in PostmarketOS is here
The pmaports git repo for this device is in "testing" here.
== See also ==
* Initial merge request (Closed, not merged)
* Replicant wants to support this device as well
* Current merge request
Samsung Galaxy Note 10.1 2014 (samsung-n1awifi)

== Contributors ==
* Michaszek8
== Maintainer(s) ==
== Users owning this device ==
== What does not work ==
* KDE Plasma (boots into black screen)
* Any DE that uses Wayland
* Stylus
* Touchscreen stops working after some minutes of uptime and after reboot The touchscreen does technically work, so does OTG mouse as the cursor does move around, but at least in Xfce4 the DE stopped responding to any input events. It's still "alive" (the clock does update, and anything that's running will keep running), it's just no longer responding to any mouse events or keystrokes. Do note, however, that Ctrl+Alt+F1, etc. still seems to work, as when switching to a tty, the cursor disappear, and when switching back to GUI with Ctrl+Alt+F7, the cursor comes back, however the tty could not be shown (the screen is stuck to the GUI no matter what I tried). Proof of touch working can be seen from ssh by using e.g. evtest on /dev/input/event2.
* WiFi could connect, but the system cannot assign any IP address to the wlan0 interface.
== Flashing ==
After flashing can be done through Heimdall. Alternatively, one can use TWRP.
=== Flashing with heimdall ===
Enter flash mode by keeping + pressed.
Then use pmbootstrap flasher flash_kernel, reboot once again in flash mode and use pmbootstrap flasher flash_rootfs.
You can do the full flashing at once with the following commands (supposing heimdall is in your PATH):
$ pmbootstrap export
$ heimdall flash --BOOT /tmp/postmarketOS-export/boot.img --SYSTEM /tmp/postmarketOS-export/samsung-n1awifi.img 
=== Flashing with TRWP ===
After having installed TRWP, press and hold + + . Press when prompted.
To create a TWRP flashable zip:
$ pmbootstrap install --android-recovery-zip
$ pmbootstrap export
Run adb push /tmp/postmarketOS-export/pmos-samsung-n1awifi.zip to copy zip to the device, reboot to TWRP and install the zip and then reboot to system. You can also use adb sideload as instructed in recovery zip installation.
== See also ==
* Initial merge request
* Exynos5420 kernel
* 
*
Samsung Galaxy Note 20 (samsung-c1s)

== Contributors ==
* BotchedRPR
== Users owning this device ==
== How to enter flash mode ==
* Download mode: Hold and while connecting the device to a computer with a USB cable.
* Recovery mode: Hold and while the phone is off.
== Secondary bootloader ==
This device has problems booting mainline Linux due to the fact that Samsung uses device tree fragments, and the combined device tree can (and will) mess up the booting process. To remedy that, we use a secondary bootloader.
=== uniLoader ===
Support for this device is implemented in a uniLoader, per this PR:
Samsung Galaxy Note 3 (samsung-hlte)

== Contributors ==
* CalcProgrammer1
* Eloy
== Maintainer(s) ==
* CalcProgrammer1
== Users owning this device ==
== Information ==
This phone is very similar to the Samsung Galaxy S5 (klte). The device-samsung-hlte support in pmaports was based on device-samsung-klte, and the kernel DTS also borrowed heavily from klte work. See the klte wiki page here: https://wiki.postmarketos.org/wiki/Samsung_Galaxy_S5_(samsung-klte)
== Back cover ==
The back cover coating will degrade after 5 to 10 years and become sticky. Using adhesive remover (30% acetone and 70% isopropyl alcohol) it is possible to remove the worst parts with a spudger, but the corners are not easy to clean. A better solution is needed.
== How to enter flash mode ==
Press and hold + + simultaneously. Then click to confirm.
== How to enter recovery mode ==
Press and hold + + simultaneously.
== Installation ==
First, install pmbootstrap.
Setup device to be used:
$ pmbootstrap init
...
Vendor [samsung]: samsung <- enter this
Device codename [i9100]: hlte <- enter this
User interface [weston]: <- choose any UI by your preference
...
Build the rootfs image:
$ pmbootstrap install
Then in order to flash it put your device in download mode, and plug it in USB. Then do:
$ pmbootstrap flasher flash_rootfs
 Hold "Volume down" + "Home" buttons at the end of the process,
 so that when phone reboots put it in flashing mode again 
$ pmbootstrap flasher flash_kernel
 This time, don't hold any button, let it reboot to Linux!
== Mainline ==
Eloy and CalcProgrammer1 are currently working on porting mainline.
Mainline booting in linux-postmarketos-qcom-msm8974
Working: Boot, display, brightness control, USB networking, touchscreen, mobile data
Not working: Touchkeys, Wacom pen, WiFi, everything else
== Hardware Details ==
SoC: Qualcomm MSM8974 (Snapdragon 800)
CPU: 
Display: Samsung S6E3FA0
PMIC: Qualcomm PM8941
PMIC: Maxim MAX77803
Wireless: Broadcom BCM4339
NFC: Broadcom BCM2079x
== Externals links ==
Samsung Galaxy Note 4 (samsung-treltexx)

There is a port for this device but it's on merge request.
== Contributors ==
* djyee(furkanguzel161)
* exkc(trying to kexec mainline kernel)
== Users owning this device ==
== How to enter flash mode ==
Press and hold + + simultaneously. Then click to confirm.
== Mainline ==
The device on the mainline kernel is the "Samsung TM2" and "Samsung TM2e". The TM2 is the Samsung Tizen reference device, and TM mean Tizen Mobile. These devices uses a "special" 64bit version of sboot (or at least the arm trustzone firmware) to be able to boot arm64 kernels. All other phones and tablets with exynos5433 has 32bit sboot, and cannot boot a 64bit kernel. Unfortunately there seem to exist few tm2/tm2e device in the world, and firmware files for them does not seem to be downloadable anywhere. To have any chance to boot an arm64 mainline kernel on treltexx and other exynos5433 devices we would need to get our hands on these firmware files, or in some other way create 64bit sboot/trustzone firmware for exynos5433.
See these chat logs for relevant discussions: 
* linux-exynos 2018-04-25
* linux-exynos 2021-08-16
Tm2 and tm2e uses u-boot rather than Samsungs proprietary variant. There was a patch sent to the u-boot project to add support for it, but it was not accepted in the sent form: U-Boot support patch. Booting u-boot should, in theory, be possible by flashing it to the BOOT partition, to which android's boot.img is normally flashed.
== UART ==
A "standard" serial debugging cable with 619 kOhm works for tre3calte (and other exynos5433 devices). The bootloader prints lots of output during boot, but for some reason the kernel is quiet, even if the console parameter is changed. A patch similar to the one found here for Galaxy S7 might be necessary to get any live kernel output.
== See also ==
* Initial merge request
Samsung Galaxy Note 4 (samsung-treltexx)/mainline

==Trying to kexec the downstream kennel from downstream kennel==
kernel log from my pc
[107162.068176] usb 1-3.2: new high-speed USB device number 105 using xhci_hcd
[107162.216267] usb 1-3.2: New USB device found, idVendor=18d1, idProduct=d001, bcdDevice=ff.ff
[107162.216278] usb 1-3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[107162.216284] usb 1-3.2: Product: SAMSUNG_Android
[107162.216288] usb 1-3.2: Manufacturer: SAMSUNG
[107162.216292] usb 1-3.2: SerialNumber: 55f70fd035f0
[107162.276750] rndis_host 1-3.2:1.0 usb0: register 'rndis_host' at usb-0000:02:00.0-3.2, RNDIS d
evice, a2:46:c4:fc:c9:cf
[107207.186412] usb 1-3.2: USB disconnect, device number 105
[107207.186840] rndis_host 1-3.2:1.0 usb0: unregister 'rndis_host' usb-0000:02:00.0-3.2, RNDIS de
vice
[107230.860182] usb 1-3.2: new high-speed USB device number 106 using xhci_hcd
[107231.006126] usb 1-3.2: New USB device found, idVendor=18d1, idProduct=d001, bcdDevice=ff.ff
[107231.006139] usb 1-3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[107231.006144] usb 1-3.2: Product: SAMSUNG_Android
[107231.006149] usb 1-3.2: Manufacturer: SAMSUNG
[107231.006153] usb 1-3.2: SerialNumber: 55f70fd035f0
[107231.066481] rndis_host 1-3.2:1.0 usb0: register 'rndis_host' at usb-0000:02:00.0-3.2, RNDIS d
evice, fa:9c:da:29:df:32
[107401.000544] usb 1-3.2: USB disconnect, device number 106
[107401.001032] rndis_host 1-3.2:1.0 usb0: unregister 'rndis_host' usb-0000:02:00.0-3.2, RNDIS de
vice
[107406.986198] usb 1-3.2: new high-speed USB device number 107 using xhci_hcd
[107412.160257] usb 1-3.2: device descriptor read/64, error -110
[107430.238205] usb 1-3.2: new high-speed USB device number 108 using xhci_hcd
[107435.458244] usb 1-3.2: device descriptor read/64, error -110
[107435.670258] usb 1-3.2: device descriptor read/64, error -71
[107435.880197] usb 1-3.2: new high-speed USB device number 109 using xhci_hcd
[107435.990248] usb 1-3.2: device descriptor read/64, error -71
[107436.202250] usb 1-3.2: device descriptor read/64, error -71