Skip to content

Instantly share code, notes, and snippets.

View hpagseddy's full-sized avatar

Hpag Seddy hpagseddy

View GitHub Profile
@hpagseddy
hpagseddy / kernel
Created June 18, 2018 12:26
kernel
>>> linux-samsung-t211: abuild 3.2.0_rc2-r0
>>> linux-samsung-t211: Checking sanity of /home/pmos/build/APKBUILD...
>>> WARNING: linux-samsung-t211: No maintainer
>>> linux-samsung-t211: Cleaning temporary build dirs...
>>> linux-samsung-t211: Fetching linux-samsung-t211-68d865123d502edffd5afaf4b97fbd0c423f1560.tar.gz::https://github.com/hpagseddy/t211-opensource/archive/68d865123d502edffd5afaf4b97fbd0c423f1560.tar.gz
>>> linux-samsung-t211: Fetching linux-samsung-t211-68d865123d502edffd5afaf4b97fbd0c423f1560.tar.gz::https://github.com/hpagseddy/t211-opensource/archive/68d865123d502edffd5afaf4b97fbd0c423f1560.tar.gz
>>> linux-samsung-t211: Checking sha512sums...
linux-samsung-t211-68d865123d502edffd5afaf4b97fbd0c423f1560.tar.gz: OK
config-samsung-t211.armhf: OK
compiler-gcc6.h: OK
@hpagseddy
hpagseddy / dmesg
Created June 10, 2018 19:48
dmesg
[ 0.000000] c0 Booting Linux on physical CPU 0
[ 0.000000] c0 Linux version 3.4.5-blackhawk (pmos@debian) (gcc version 6.4.0 (Alpine 6.4.0) ) #1-postmarketOS SMP PREEMPT Wed May 9 18:30:26 UTC 2018
[ 0.000000] c0 CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7d
[ 0.000000] c0 CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] c0 Machine: PXA988
[ 0.000000] c0 get_boot_startaddr: fb_address = 0x17000000
[ 0.000000] c0 Malformed early option 'disp_start_addr'
[ 0.000000] c0 Reserved OBM memory: 0x100000@0x0
[ 0.000000] c0 Reserved CP memory: 0x2000000@0x6000000
[ 0.000000] c0 ION carveout memory: 0x08000000@0x09000000
drivers/staging/fbtft/fbtft-core.o: In function `fbtft_init_display':
fbtft-core.c:(.text+0x1958): multiple definition of `fbtft_init_display'
drivers/video/fbtft/fbtft-core.o:fbtft-core.c:(.text+0x1150): first defined here
drivers/staging/fbtft/fbtft-core.o: In function `__crc_fbtft_framebuffer_alloc':
fbtft-core.c:(*ABS*+0x3ab378ee): multiple definition of `__crc_fbtft_framebuffer_alloc'
drivers/staging/fbtft/fbtft-core.o: In function `__crc_fbtft_probe_common':
fbtft-core.c:(*ABS*+0x824f8456): multiple definition of `__crc_fbtft_probe_common'
drivers/staging/fbtft/fbtft-core.o: In function `__crc_fbtft_register_backlight':
fbtft-core.c:(*ABS*+0x4458706b): multiple definition of `__crc_fbtft_register_backlight'
drivers/staging/fbtft/fbtft-core.o: In function `fbtft_remove_common':
@hpagseddy
hpagseddy / error
Created May 5, 2018 22:54
another one
(004918) [01:52:22] (native) calculate depends of android-tools (pmbootstrap -v for details)
(004918) [01:52:24] (native) install
(004918) [01:52:24] (native) % apk --no-progress add -u --virtual .pmbootstrap libstdc++
WARNING: Ignoring /mnt/pmbootstrap-packages/x86_64/APKINDEX.tar.gz: No such file or directory
1 error; 429 MiB in 101 packages
(004918) [01:52:24] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(004918) [01:52:24] NOTE: The failed command's output is above the ^^^ line in the logfile: /home/hpagseddy/.local/var/pmbootstrap/log.txt
(004918) [01:52:24] ERROR: Command failed: (native) % apk --no-progress add -u --virtual .pmbootstrap libstdc++
(004918) [01:52:24] Run 'pmbootstrap log' for details.
(004918) [01:52:24] See also: <https://postmarketos.org/troubleshooting>
@hpagseddy
hpagseddy / recovery zip
Created April 30, 2018 16:46
android recovery zip error
(005766) [19:45:38] (native) calculate depends of heimdall (pmbootstrap -v for details)
(005766) [19:45:39] (native) calculate depends of heimdall (pmbootstrap -v for details)
(005766) [19:45:39] ERROR: action sideload is not configured for method heimdall-bootimg!
(005766) [19:45:39] Run 'pmbootstrap log' for details.
(005766) [19:45:39] See also: <https://postmarketos.org/troubleshooting>
(005766) [19:45:39] Traceback (most recent call last):
File "/home/hpagseddy/pmbootstrap/pmb/__init__.py", line 61, in main
getattr(frontend, args.action)(args)
File "/home/hpagseddy/pmbootstrap/pmb/helpers/frontend.py", line 183, in flasher
pmb.flasher.frontend(args)
@hpagseddy
hpagseddy / odin export
Created April 30, 2018 16:39
odin export error
(002673) [19:35:29] (rootfs_samsung-t211) calculate depends of device-samsung-t211 (pmbootstrap -v for details)
(002673) [19:35:32] (rootfs_samsung-t211) calculate depends of postmarketos-mkinitfs (pmbootstrap -v for details)
(002673) [19:35:32] (rootfs_samsung-t211) calculate depends of (pmbootstrap -v for details)
(002673) [19:35:32] (rootfs_samsung-t211) mkinitfs samsung-t211
(002673) [19:35:32] (rootfs_samsung-t211) % mkinitfs -o /boot/initramfs-samsung-t211 3.4.5-werewolf--RIP_Beth
==> initramfs: creating /boot/initramfs-samsung-t211
Scanning kernel module dependencies...
NOTE: ** modprobe warnings below can be ignored ** if your device does not run the
mainline kernel yet (most devices!) or if the related kernel options are enabled
with 'y' instead of 'm' (module).
@hpagseddy
hpagseddy / Its absolutely a log file
Created April 29, 2018 19:31
heimdall(from pmbootstrap LOG)
(001610) [22:28:42] (native) flash rootfs image
(001610) [22:28:42] (native) calculate depends of heimdall (pmbootstrap -v for details)
(001610) [22:28:43] (native) % heimdall_wait_for_device.sh
(001610) [22:28:43] *** output passed to pmbootstrap stdout, not to this log ***
(001610) [22:28:43] (native) % heimdall flash --SYSTEM /home/pmos/rootfs/samsung-t211.img
(001610) [22:28:43] *** output passed to pmbootstrap stdout, not to this log ***
(001610) [22:28:55] ERROR: Command failed: (native) % heimdall flash --SYSTEM /home/pmos/rootfs/samsung-t211.img
(001610) [22:28:55] Run 'pmbootstrap log' for details.
(001610) [22:28:55] See also: <https://postmarketos.org/troubleshooting>
(001610) [22:28:55] Traceback (most recent call last):
@hpagseddy
hpagseddy / heimdall
Created April 29, 2018 15:06
heimdall
(018971) [18:05:20] ERROR: Command failed: (native) % heimdall flash --SYSTEM /home/pmos/rootfs/samsung-t211.img
(018971) [18:05:20] Run 'pmbootstrap log' for details.
(018971) [18:05:20] See also: <https://postmarketos.org/troubleshooting>
(018971) [18:05:20] Traceback (most recent call last):
File "/home/hpagseddy/pmbootstrap/pmb/helpers/run.py", line 74, in core
subprocess.check_call(cmd)
File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', 'env', '-i', '/bin/sh', '-c', "CHARSET=UTF-8 PATH=/usr/lib/ccache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin SHELL=/bin/ash HISTFILE='~/.ash_history' TERM=xterm /usr/sbin/chroot /home/hpagseddy/.local/var/pmbootstrap/chroot_native /bin/sh -c 'cd /;heimdall flash --SYSTEM /home/pmos/rootfs/samsung-t211.img'"]' returned non-zero exit status 1
@hpagseddy
hpagseddy / kernel compile error
Created April 29, 2018 13:09
kernel compile
(1/5) Installing binutils-armhf (2.28-r3)
(2/5) Installing gcc-armhf (6.4.0-r7)
(3/5) Installing g++-armhf (6.4.0-r7)
(4/5) Installing ccache-cross-symlinks (1-r4)
(5/5) Installing .pmbootstrap (0)
Executing busybox-1.28.2-r3.trigger
OK: 332 MiB in 76 packages
(025405) [16:07:01] (native) % apk --no-progress add gcc-armhf g++-armhf ccache-cross-symlinks
WARNING: Ignoring /mnt/pmbootstrap-packages/x86_64/APKINDEX.tar.gz: No such file or directory
OK: 332 MiB in 76 packages
@hpagseddy
hpagseddy / error
Created April 28, 2018 19:55
error
[22:53:38] PROTIP: You can simply do 'pmbootstrap menuconfig samsung-t211'
[22:53:42] (native) extract kernel source
[22:53:53] (native) apply patches
/usr/bin/abuild: /usr/share/abuild/functions.sh: line 2: can't create /dev/null: Permission denied
/usr/bin/abuild: /usr/share/abuild/functions.sh: line 2: git: not found
'/home/pmos/build/src/compiler-gcc6.h' -> '/home/pmos/build/src/android_kernel_samsung_lt02-bcdd572fb3cc065e7cce9e0d3ae26e69d9ef761c/include/linux/compiler-gcc6.h'
/bin/sh: can't create /dev/null: Permission denied
/bin/sh: can't create /dev/null: Permission denied
/bin/sh: can't create /dev/null: Permission denied
/bin/sh: can't create /dev/null: Permission denied