WiFi and Bluetooth not working - Remix OS for PC

Hey,
I installed Remix OS 2.0 on my Dell Inspiron 11 3148. It successfully booted up but WiFi and Bluetooth are not working...
Thanks.

Can anyone help... Pls... :fingers-crossed:

anyone? pls reply...

Akshat2100 said:
anyone? pls reply...
Click to expand...
Click to collapse
add the below commands in <remixos>/system/etc/init.sh in the init() function:
"
rmmod bcma
rmmod wl
rmmod b43
rmmod ssb
modprobe -r sta ssb wl
modprobe wl
dhcpcd wlan0
"

sacredev said:
add the below commands in <remixos>/system/etc/init.sh in the init() function:
"
rmmod bcma
rmmod wl
rmmod b43
rmmod ssb
modprobe -r sta ssb wl
modprobe wl
dhcpcd wlan0
"
Click to expand...
Click to collapse
In order to do that I'll have to install a root file explorer and I'll also have to root it. But I need WiFi or Bluetooth to do that as Remix OS does not support USB...
Thanks anyways :good:

Akshat2100 said:
In order to do that I'll have to install a root file explorer and I'll also have to root it. But I need WiFi or Bluetooth to do that as Remix OS does not support USB...
Thanks anyways :good:
Click to expand...
Click to collapse
Hey there is a way you can use a rooted version of Remix OS and it doesn't involve doing it within the OS. Check out this thread: http://forum.xda-developers.com/remix/remix-os/remixosforpc-deodexed-pre-rooted-t3299573

Thanks a lot sacredev and F1Fanatic27!!!
WiFi is finally working!!
And I successfully rooted
:good::good:

you have to create a new function called init ()
because look and only this function appears do_init ()

Ya that's what I did, I created a new function.

Hi. Can you tell me in what lines did you add the code, i dont know where to add it and its no working. Please Help Me!!!!

ascila said:
Hi. Can you tell me in what lines did you add the code, i dont know where to add it and its no working. Please Help Me!!!!
Click to expand...
Click to collapse
This would be helpful. Also, would someone mind sharing their updated file? I am also confused on how you replace the file? I tried to update the file and then paste it using 7 zip into the directory and received an error. that the operation was not allowed.
Thanks!

Akshat2100 said:
Thanks a lot sacredev and F1Fanatic27!!!
WiFi is finally working!!
And I successfully rooted
:good::good:
Click to expand...
Click to collapse
Hi can you show me where you add the code in the init.sh file. I cant make it work, when I modified the file the system just crash. Can you take a picture of the file pleas????

Akshat2100 said:
Ya that's what I did, I created a new function.
Click to expand...
Click to collapse
could upload the file system.img
because I could not change the file init.sh
please

ascila said:
Hi. Can you tell me in what lines did you add the code, i dont know where to add it and its no working. Please Help Me!!!!
Click to expand...
Click to collapse
b13rayan said:
could upload the file system.img
because I could not change the file init.sh
please
Click to expand...
Click to collapse
Maybe the developer could update the current build? It seems that this is causing problems for a lot of PC owners. I have it loaded on my machine, everything looks great except no Bluetooth or WiFi, I am excited to explorer the OS more. Just need mouse and keyboard! :crying:

ascila said:
Hi. Can you tell me in what lines did you add the code, i dont know where to add it and its no working. Please Help Me!!!!
Click to expand...
Click to collapse
Sure!
you also need to add "init" in "function do_init()" like in the picture below
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
here is the init.sh file, it's also there in the attachments (I had to make a .zip file as i could not upload it)
#
# Copyright (C) 2013 The Android-x86 Open Source Project
#
# License: GNU Public License v2 or later
#
function set_property()
{
# this must be run before post-fs stage
echo $1=$2 >> /x86.prop
}
function init_misc()
{
# a hack for USB modem
lsusb | grep 1a8d:1000 && eject
# in case no cpu governor driver autoloads
[ -d /sys/devices/system/cpu/cpu0/cpufreq ] || modprobe acpi-cpufreq
}
function init_hal_audio()
{
case "$PRODUCT" in
VirtualBox*|Bochs*)
[ -d /proc/asound/card0 ] || modprobe snd-sb16 isapnp=0 irq=5
;;
*)
;;
esac
}
function init()
{
rmmod bcma
rmmod wl
rmmod b43
rmmod ssbun
modprobe -r sta ssb wl
modprobe wl
dhcpcd wlan0
}
function init_hal_bluetooth()
{
for r in /sys/class/rfkill/*; do
type=$(cat $r/type)
[ "$type" = "wlan" -o "$type" = "bluetooth" ] && echo 1 > $r/state
done
case "$PRODUCT" in
T10*TA)
modprobe ak8975
modprobe hci-uart
BTUART_PORT=/dev/ttyS1
brcm_patchram_plus -d --no2bytes --enable_hci --patchram /system/lib/firmware/brcm/bcm43241b4.hcd $BTUART_PORT
;;
MacBookPro8*)
rmmod b43
modprobe b43 btcoex=0
modprobe btusb
;;
*)
for bt in $(lsusb -v | awk ' /Class:.E0/ { print $9 } '); do
chown 1002.1002 $bt && chmod 660 $bt
done
modprobe btusb
;;
esac
if [ -n "$BTUART_PORT" ]; then
set_property hal.bluetooth.uart $BTUART_PORT
chown bluetooth.bluetooth $BTUART_PORT
log -t hciconfig -p i "`hciconfig`"
fi
}
function init_hal_camera()
{
[ -c /dev/video0 ] || modprobe vivi
}
function init_hal_gps()
{
# TODO
return
}
function set_drm_mode()
{
case "$PRODUCT" in
ET1602*)
drm_mode=1366x768
;;
*)
;;
esac
[ -n "$drm_mode" ] && set_property debug.drm.mode.force $drm_mode
}
function init_uvesafb()
{
case "$PRODUCT" in
*Q550)
UVESA_MODE=${UVESA_MODE:-1280x800}
;;
ET2002*)
UVESA_MODE=${UVESA_MODE:-1600x900}
;;
T91*)
UVESA_MODE=${UVESA_MODE:-1024x600}
;;
VirtualBox*|Bochs*)
UVESA_MODE=${UVESA_MODE:-1024x768}
;;
*)
;;
esac
modprobe uvesafb mode_option=${UVESA_MODE:-800x600}-16 ${UVESA_OPTION:-mtrr=3 scroll=redraw}
}
function init_hal_gralloc()
{
case "$(cat /proc/fb | head -1)" in
0*inteldrmfb|0*radeondrmfb|0*nouveaufb|0*svgadrmfb)
set_property ro.hardware.gralloc drm
set_drm_mode
;;
"")
init_uvesafb
;&
0*)
[ "$HWACCEL" = "1" ] || set_property debug.egl.hw 0
;;
esac
}
function init_hal_hwcomposer()
{
# TODO
return
}
function init_hal_lights()
{
chown 1000.1000 /sys/class/backlight/*/brightness
}
function init_hal_power()
{
for p in /sys/class/rtc/*; do
echo disabled > $p/device/power/wakeup
done
# TODO
case "$PRODUCT" in
*)
;;
esac
}
function init_hal_sensors()
{
local hal_sensors=kbd
case "$(cat $DMIPATH/uevent)" in
*Lucid-MWE*)
set_property ro.ignore_atkbd 1
hal_sensors=hdaps
;;
*ICONIA*W5*)
hal_sensors=w500
;;
*S10-3t*)
hal_sensors=s103t
;;
*Inagua*)
#setkeycodes 0x62 29
#setkeycodes 0x74 56
set_property ro.ignore_atkbd 1
set_property hal.sensors.kbd.type 2
;;
*TEGA*|*2010:svnIntel:*)
set_property ro.ignore_atkbd 1
set_property hal.sensors.kbd.type 1
io_switch 0x0 0x1
setkeycodes 0x6d 125
;;
*DLI*)
set_property ro.ignore_atkbd 1
set_property hal.sensors.kbd.type 1
setkeycodes 0x64 1
setkeycodes 0x65 172
setkeycodes 0x66 120
setkeycodes 0x67 116
setkeycodes 0x68 114
setkeycodes 0x69 115
setkeycodes 0x6c 114
setkeycodes 0x6d 115
;;
*tx2*)
setkeycodes 0xb1 138
setkeycodes 0x8a 152
set_property hal.sensors.kbd.type 6
set_property poweroff.doubleclick 0
set_property qemu.hw.mainkeys 1
;;
*MS-N0E1*)
set_property ro.ignore_atkbd 1
set_property poweroff.doubleclick 0
setkeycodes 0xa5 125
setkeycodes 0xa7 1
setkeycodes 0xe3 142
;;
*Aspire1*25*)
modprobe lis3lv02d_i2c
hal_sensors=hdaps
echo -n "enabled" > /sys/class/thermal/thermal_zone0/mode
;;
*ThinkPad*Tablet*)
modprobe hdaps
hal_sensors=hdaps
;;
*)
;;
esac
# has iio sensor-hub?
if [ -n "`ls /sys/bus/iio/devices/iio:device* 2> /dev/null`" ]; then
busybox chown -R 1000.1000 /sys/bus/iio/devices/iio:device*/
lsmod | grep -q hid_sensor_accel_3d && hal_sensors=hsb || hal_sensors=iio
fi
set_property ro.hardware.sensors $hal_sensors
}
function create_pointercal()
{
if [ ! -e /data/misc/tscal/pointercal ]; then
mkdir -p /data/misc/tscal
touch /data/misc/tscal/pointercal
chown 1000.1000 /data/misc/tscal /data/misc/tscal/*
chmod 775 /data/misc/tscal
chmod 664 /data/misc/tscal/pointercal
fi
}
function init_tscal()
{
case "$PRODUCT" in
T91|T101|ET2002|74499FU|945GSE-ITE8712|CF-19[CDYFGKLP]*)
create_pointercal
return
;;
*)
;;
esac
for usbts in $(lsusb | awk '{ print $6 }'); do
case "$usbts" in
0596:0001|0eef:0001)
create_pointercal
return
;;
*)
;;
esac
done
}
function init_ril()
{
case "$(cat $DMIPATH/uevent)" in
*TEGA*|*2010:svnIntel:*|*Lucid-MWE*)
set_property rild.libpath /system/lib/libhuaweigeneric-ril.so
set_property rild.libargs "-d /dev/ttyUSB2 -v /dev/ttyUSB1"
;;
*)
set_property rild.libpath /system/lib/libreference-ril.so
set_property rild.libargs "-d /dev/ttyUSB2"
;;
esac
}
function init_cpu_governor()
{
governor=$(getprop cpu.governor)
[ $governor ] && {
for cpu in $(ls -d /sys/devices/system/cpu/cpu?); do
echo $governor > $cpu/cpufreq/scaling_governor || return 1
done
}
}
function do_init()
{
init_misc
init_hal_audio
init
init_hal_bluetooth
init_hal_camera
init_hal_gps
init_hal_gralloc
init_hal_hwcomposer
init_hal_lights
init_hal_power
init_hal_sensors
init_tscal
init_ril
chmod 640 /x86.prop
post_init
}
function do_netconsole()
{
modprobe netconsole netconsole="@/,@$(getprop dhcp.eth0.gateway)/"
}
function do_bootcomplete()
{
init_cpu_governor
[ -z "$(getprop persist.sys.root_access)" ] && setprop persist.sys.root_access 3
# FIXME: autosleep works better on i965?
[ "$(getprop debug.mesa.driver)" = "i965" ] && setprop debug.autosleep 1
lsmod | grep -e brcmfmac && setprop wlan.no-unload-driver 1
case "$PRODUCT" in
1866???|1867???|1869???) # ThinkPad X41 Tablet
start tablet-mode
start wacom-input
setkeycodes 0x6d 115
setkeycodes 0x6e 114
setkeycodes 0x69 28
setkeycodes 0x6b 158
setkeycodes 0x68 172
setkeycodes 0x6c 127
setkeycodes 0x67 217
;;
6363???|6364???|6366???) # ThinkPad X60 Tablet
;&
7762???|7763???|7767???) # ThinkPad X61 Tablet
start tablet-mode
start wacom-input
setkeycodes 0x6d 115
setkeycodes 0x6e 114
setkeycodes 0x69 28
setkeycodes 0x6b 158
setkeycodes 0x68 172
setkeycodes 0x6c 127
setkeycodes 0x67 217
;;
7448???|7449???|7450???|7453???) # ThinkPad X200 Tablet
start tablet-mode
start wacom-input
setkeycodes 0xe012 158
setkeycodes 0x66 172
setkeycodes 0x6b 127
;;
*)
;;
esac
# [ -d /proc/asound/card0 ] || modprobe snd-dummy
for c in $(grep '\[.*\]' /proc/asound/cards | awk '{print $1}'); do
f=/system/etc/alsa/$(cat /proc/asound/card$c/id).state
if [ -e $f ]; then
alsa_ctl -f $f restore $c
else
alsa_ctl init $c
alsa_amixer -c $c set Master on
alsa_amixer -c $c set Master 100%
alsa_amixer -c $c set Headphone on
alsa_amixer -c $c set Headphone 100%
alsa_amixer -c $c set Speaker 100%
alsa_amixer -c $c set Capture 100%
alsa_amixer -c $c set Capture cap
alsa_amixer -c $c set PCM 100 unmute
alsa_amixer -c $c set 'Mic Boost' 3
alsa_amixer -c $c set 'Internal Mic Boost' 3
fi
done
}
function do_hci()
{
local hci=`hciconfig | grep ^hci | cut -d: -f1`
local btd="`getprop init.svc.bluetoothd`"
log -t bluetoothd -p i "$btd ($hci)"
if [ -n "`getprop hal.bluetooth.uart`" ]; then
[ "`getprop init.svc.bluetoothd`" = "running" ] && hciconfig $hci up
fi
}
PATH=/sbin:/system/bin:/system/xbin
DMIPATH=/sys/class/dmi/id
BOARD=$(cat $DMIPATH/board_name)
PRODUCT=$(cat $DMIPATH/product_name)
# import cmdline variables
for c in `cat /proc/cmdline`; do
case $c in
androidboot.hardware=*)
;;
*=*)
eval $c
;;
esac
done
[ -n "$DEBUG" ] && set -x || exec &> /dev/null
# import the vendor specific script
hw_sh=/vendor/etc/init.sh
[ -e $hw_sh ] && source $hw_sh
case "$1" in
netconsole)
[ -n "$DEBUG" ] && do_netconsole
;;
bootcomplete)
do_bootcomplete
;;
hci)
do_hci
;;
init|"")
do_init
;;
esac
return 0

b13rayan said:
could upload the file system.img
because I could not change the file init.sh
please
Click to expand...
Click to collapse
Sry but the system.img file is too big to upload...
But, you can try rooting it by referring to this link and then change init.sh using ES File explorer.
:good::good:

Akshat2100 said:
Sry but the system.img file is too big to upload...
But, you can try rooting it by referring to this link and then change init.sh using ES File explorer.
:good::good:
Click to expand...
Click to collapse
Well, I was hopeful, but this didn't work for me. I am rooted with above link. I added new init file using ES Explorer and no success. I am also expriencing extremely slow speed. I created a 16GB partition an added a boot manager. I am not using the USB method. I hope that this OS can get ironed out. It has great potential and could be a lot of fun.

Akshat2100 said:
Sure!
you also need to add "init" in "function do_init()" like in the picture below
here is the init.sh file, it's also there in the attachments (I had to make a .zip file as i could not upload it)
#
# Copyright (C) 2013 The Android-x86 Open Source Project
#
# License: GNU Public License v2 or later
#
function set_property()
{
# this must be run before post-fs stage
echo $1=$2 >> /x86.prop
}
function init_misc()
{
# a hack for USB modem
lsusb | grep 1a8d:1000 && eject
# in case no cpu governor driver autoloads
[ -d /sys/devices/system/cpu/cpu0/cpufreq ] || modprobe acpi-cpufreq
}
function init_hal_audio()
{
case "$PRODUCT" in
VirtualBox*|Bochs*)
[ -d /proc/asound/card0 ] || modprobe snd-sb16 isapnp=0 irq=5
;;
*)
;;
esac
}
function init()
{
rmmod bcma
rmmod wl
rmmod b43
rmmod ssbun
modprobe -r sta ssb wl
modprobe wl
dhcpcd wlan0
}
function init_hal_bluetooth()
{
for r in /sys/class/rfkill/*; do
type=$(cat $r/type)
[ "$type" = "wlan" -o "$type" = "bluetooth" ] && echo 1 > $r/state
done
case "$PRODUCT" in
T10*TA)
modprobe ak8975
modprobe hci-uart
BTUART_PORT=/dev/ttyS1
brcm_patchram_plus -d --no2bytes --enable_hci --patchram /system/lib/firmware/brcm/bcm43241b4.hcd $BTUART_PORT
;;
MacBookPro8*)
rmmod b43
modprobe b43 btcoex=0
modprobe btusb
;;
*)
for bt in $(lsusb -v | awk ' /Class:.E0/ { print $9 } '); do
chown 1002.1002 $bt && chmod 660 $bt
done
modprobe btusb
;;
esac
if [ -n "$BTUART_PORT" ]; then
set_property hal.bluetooth.uart $BTUART_PORT
chown bluetooth.bluetooth $BTUART_PORT
log -t hciconfig -p i "`hciconfig`"
fi
}
function init_hal_camera()
{
[ -c /dev/video0 ] || modprobe vivi
}
function init_hal_gps()
{
# TODO
return
}
function set_drm_mode()
{
case "$PRODUCT" in
ET1602*)
drm_mode=1366x768
;;
*)
;;
esac
[ -n "$drm_mode" ] && set_property debug.drm.mode.force $drm_mode
}
function init_uvesafb()
{
case "$PRODUCT" in
*Q550)
UVESA_MODE=${UVESA_MODE:-1280x800}
;;
ET2002*)
UVESA_MODE=${UVESA_MODE:-1600x900}
;;
T91*)
UVESA_MODE=${UVESA_MODE:-1024x600}
;;
VirtualBox*|Bochs*)
UVESA_MODE=${UVESA_MODE:-1024x768}
;;
*)
;;
esac
modprobe uvesafb mode_option=${UVESA_MODE:-800x600}-16 ${UVESA_OPTION:-mtrr=3 scroll=redraw}
}
function init_hal_gralloc()
{
case "$(cat /proc/fb | head -1)" in
0*inteldrmfb|0*radeondrmfb|0*nouveaufb|0*svgadrmfb)
set_property ro.hardware.gralloc drm
set_drm_mode
;;
"")
init_uvesafb
;&
0*)
[ "$HWACCEL" = "1" ] || set_property debug.egl.hw 0
;;
esac
}
function init_hal_hwcomposer()
{
# TODO
return
}
function init_hal_lights()
{
chown 1000.1000 /sys/class/backlight/*/brightness
}
function init_hal_power()
{
for p in /sys/class/rtc/*; do
echo disabled > $p/device/power/wakeup
done
# TODO
case "$PRODUCT" in
*)
;;
esac
}
function init_hal_sensors()
{
local hal_sensors=kbd
case "$(cat $DMIPATH/uevent)" in
*Lucid-MWE*)
set_property ro.ignore_atkbd 1
hal_sensors=hdaps
;;
*ICONIA*W5*)
hal_sensors=w500
;;
*S10-3t*)
hal_sensors=s103t
;;
*Inagua*)
#setkeycodes 0x62 29
#setkeycodes 0x74 56
set_property ro.ignore_atkbd 1
set_property hal.sensors.kbd.type 2
;;
*TEGA*|*2010:svnIntel:*)
set_property ro.ignore_atkbd 1
set_property hal.sensors.kbd.type 1
io_switch 0x0 0x1
setkeycodes 0x6d 125
;;
*DLI*)
set_property ro.ignore_atkbd 1
set_property hal.sensors.kbd.type 1
setkeycodes 0x64 1
setkeycodes 0x65 172
setkeycodes 0x66 120
setkeycodes 0x67 116
setkeycodes 0x68 114
setkeycodes 0x69 115
setkeycodes 0x6c 114
setkeycodes 0x6d 115
;;
*tx2*)
setkeycodes 0xb1 138
setkeycodes 0x8a 152
set_property hal.sensors.kbd.type 6
set_property poweroff.doubleclick 0
set_property qemu.hw.mainkeys 1
;;
*MS-N0E1*)
set_property ro.ignore_atkbd 1
set_property poweroff.doubleclick 0
setkeycodes 0xa5 125
setkeycodes 0xa7 1
setkeycodes 0xe3 142
;;
*Aspire1*25*)
modprobe lis3lv02d_i2c
hal_sensors=hdaps
echo -n "enabled" > /sys/class/thermal/thermal_zone0/mode
;;
*ThinkPad*Tablet*)
modprobe hdaps
hal_sensors=hdaps
;;
*)
;;
esac
# has iio sensor-hub?
if [ -n "`ls /sys/bus/iio/devices/iio:device* 2> /dev/null`" ]; then
busybox chown -R 1000.1000 /sys/bus/iio/devices/iio:device*/
lsmod | grep -q hid_sensor_accel_3d && hal_sensors=hsb || hal_sensors=iio
fi
set_property ro.hardware.sensors $hal_sensors
}
function create_pointercal()
{
if [ ! -e /data/misc/tscal/pointercal ]; then
mkdir -p /data/misc/tscal
touch /data/misc/tscal/pointercal
chown 1000.1000 /data/misc/tscal /data/misc/tscal/*
chmod 775 /data/misc/tscal
chmod 664 /data/misc/tscal/pointercal
fi
}
function init_tscal()
{
case "$PRODUCT" in
T91|T101|ET2002|74499FU|945GSE-ITE8712|CF-19[CDYFGKLP]*)
create_pointercal
return
;;
*)
;;
esac
for usbts in $(lsusb | awk '{ print $6 }'); do
case "$usbts" in
0596:0001|0eef:0001)
create_pointercal
return
;;
*)
;;
esac
done
}
function init_ril()
{
case "$(cat $DMIPATH/uevent)" in
*TEGA*|*2010:svnIntel:*|*Lucid-MWE*)
set_property rild.libpath /system/lib/libhuaweigeneric-ril.so
set_property rild.libargs "-d /dev/ttyUSB2 -v /dev/ttyUSB1"
;;
*)
set_property rild.libpath /system/lib/libreference-ril.so
set_property rild.libargs "-d /dev/ttyUSB2"
;;
esac
}
function init_cpu_governor()
{
governor=$(getprop cpu.governor)
[ $governor ] && {
for cpu in $(ls -d /sys/devices/system/cpu/cpu?); do
echo $governor > $cpu/cpufreq/scaling_governor || return 1
done
}
}
function do_init()
{
init_misc
init_hal_audio
init
init_hal_bluetooth
init_hal_camera
init_hal_gps
init_hal_gralloc
init_hal_hwcomposer
init_hal_lights
init_hal_power
init_hal_sensors
init_tscal
init_ril
chmod 640 /x86.prop
post_init
}
function do_netconsole()
{
modprobe netconsole netconsole="@/,@$(getprop dhcp.eth0.gateway)/"
}
function do_bootcomplete()
{
init_cpu_governor
[ -z "$(getprop persist.sys.root_access)" ] && setprop persist.sys.root_access 3
# FIXME: autosleep works better on i965?
[ "$(getprop debug.mesa.driver)" = "i965" ] && setprop debug.autosleep 1
lsmod | grep -e brcmfmac && setprop wlan.no-unload-driver 1
case "$PRODUCT" in
1866???|1867???|1869???) # ThinkPad X41 Tablet
start tablet-mode
start wacom-input
setkeycodes 0x6d 115
setkeycodes 0x6e 114
setkeycodes 0x69 28
setkeycodes 0x6b 158
setkeycodes 0x68 172
setkeycodes 0x6c 127
setkeycodes 0x67 217
;;
6363???|6364???|6366???) # ThinkPad X60 Tablet
;&
7762???|7763???|7767???) # ThinkPad X61 Tablet
start tablet-mode
start wacom-input
setkeycodes 0x6d 115
setkeycodes 0x6e 114
setkeycodes 0x69 28
setkeycodes 0x6b 158
setkeycodes 0x68 172
setkeycodes 0x6c 127
setkeycodes 0x67 217
;;
7448???|7449???|7450???|7453???) # ThinkPad X200 Tablet
start tablet-mode
start wacom-input
setkeycodes 0xe012 158
setkeycodes 0x66 172
setkeycodes 0x6b 127
;;
*)
;;
esac
# [ -d /proc/asound/card0 ] || modprobe snd-dummy
for c in $(grep '\[.*\]' /proc/asound/cards | awk '{print $1}'); do
f=/system/etc/alsa/$(cat /proc/asound/card$c/id).state
if [ -e $f ]; then
alsa_ctl -f $f restore $c
else
alsa_ctl init $c
alsa_amixer -c $c set Master on
alsa_amixer -c $c set Master 100%
alsa_amixer -c $c set Headphone on
alsa_amixer -c $c set Headphone 100%
alsa_amixer -c $c set Speaker 100%
alsa_amixer -c $c set Capture 100%
alsa_amixer -c $c set Capture cap
alsa_amixer -c $c set PCM 100 unmute
alsa_amixer -c $c set 'Mic Boost' 3
alsa_amixer -c $c set 'Internal Mic Boost' 3
fi
done
}
function do_hci()
{
local hci=`hciconfig | grep ^hci | cut -d: -f1`
local btd="`getprop init.svc.bluetoothd`"
log -t bluetoothd -p i "$btd ($hci)"
if [ -n "`getprop hal.bluetooth.uart`" ]; then
[ "`getprop init.svc.bluetoothd`" = "running" ] && hciconfig $hci up
fi
}
PATH=/sbin:/system/bin:/system/xbin
DMIPATH=/sys/class/dmi/id
BOARD=$(cat $DMIPATH/board_name)
PRODUCT=$(cat $DMIPATH/product_name)
# import cmdline variables
for c in `cat /proc/cmdline`; do
case $c in
androidboot.hardware=*)
;;
*=*)
eval $c
;;
esac
done
[ -n "$DEBUG" ] && set -x || exec &> /dev/null
# import the vendor specific script
hw_sh=/vendor/etc/init.sh
[ -e $hw_sh ] && source $hw_sh
case "$1" in
netconsole)
[ -n "$DEBUG" ] && do_netconsole
;;
bootcomplete)
do_bootcomplete
;;
hci)
do_hci
;;
init|"")
do_init
;;
esac
return 0
Click to expand...
Click to collapse
Man I really appreciate this. Thanks, you help me a lot. I'm just testing right now and I'll the you what's the result. Again thank you bro. You're great.

450Thumper said:
Well, I was hopeful, but this didn't work for me. I am rooted with above link. I added new init file using ES Explorer and no success. I am also expriencing extremely slow speed. I created a 16GB partition an added a boot manager. I am not using the USB method. I hope that this OS can get ironed out. It has great potential and could be a lot of fun.
Click to expand...
Click to collapse
Hmm... It must be a different error... Btw did u enable "root explorer" in ES File explorer?
I'm also not using USB method, I created a 30GB partition...

I successfully replaced the init.sh file but my wifi is still not working
By the way my wifi is Intel 7260. Any help? Thanks

Related

Modifying build.prop via script

I'm trying to create a script to modify the build.prop file 'automatically'.
I want the script to check for entries I define and:
1. If they do not exist add them
2. If they do exist, check the value, and if it does not match what I've define modify it.
I found a much older (2012) thread and took a script from there. But it doesn't work.
It runs but outputs nothing, not changing the build.prop
I've attached the script. Is it correct?
Code:
#!/system/bin/sh
# Definitions
file=/system/build.prop
tmpf=/system.buildprop.bak
line_list="wifi.supplicant_scan_interval=120 ro.sf.lcd_density=480"
# Function to get args as needed for loop
getargs() {
par=$1
line=`echo $par |cut -d"=" -f1`
arg=`echo $par |cut -d"=" -f2`
}
# Loop to make all changes in line_list
for x in $line_lst; do
# Get all needed arguments
getargs $x
# Write this change to a tmp file to check on it
oldarg=`grep $line $file |cut -d"=" -f2`
sed "s/$line=.*/$line=${arg}/g" $file > $tmpf
# Check if the change was made
chknewarg=`grep $line $tmpf |cut -d"=" -f2`
if [ "$chknewarg" = "$arg" ]; then
cp $tmpf $file
if [ -f $tmpf ]; then
rm $tmpf
fi
echo "File edited"
else
if [ -f $tmpf ]; then
rm $tmpf
fi
echo "Expected $arg, got $chknewarg instead"
exit 1
fi
# If it doesn't exist at all append it to the file
chkexists=`grep -c $line $file`
if [ $chkexists -eq 0 ]; then
echo "$x" >> $file
fi
done
exit 0
I would certainly like to also know how to do this via update script.

Can not wake up from sleep mode.

Hi, remix OS is very good. Certainly will compete windows. Without major problems I had started to offer on a laptop computer, video, Google Play, microsoft bluetooth mouse comfort, brightness control and sound, gmail, youtube. I am very happy. I just need advice on how to correct the deficiency. Can not wake up from sleep mode.
Remix OS 2
notebook HP 250 G2
number product FOY78EA BCM
segin0 said:
Hi, remix OS is very good. Certainly will compete windows. Without major problems I had started to offer on a laptop computer, video, Google Play, microsoft bluetooth mouse comfort, brightness control and sound, gmail, youtube. I am very happy. I just need advice on how to correct the deficiency. Can not wake up from sleep mode.
Remix OS 2
notebook HP 250 G2
number product FOY78EA BCM
Click to expand...
Click to collapse
Sleep mode does not work properly. Dont let it go to sleep.
I'm currently on 2.0.205. Running 32-bit Version Remix OS directly from SSD, on Asus 1015PEM. I also face the problem of waking up the netbook from sleep with keyboard, trackpad and mouse.
Finally managed to wake it up by physically closing the lid of my netbook and reopening. Hope it helps someone.
segin0 said:
Hi, remix OS is very good. Certainly will compete windows. Without major problems I had started to offer on a laptop computer, video, Google Play, microsoft bluetooth mouse comfort, brightness control and sound, gmail, youtube. I am very happy. I just need advice on how to correct the deficiency. Can not wake up from sleep mode.
Remix OS 2
notebook HP 250 G2
number product FOY78EA BCM
Click to expand...
Click to collapse
If you prefre,you can go to Settings>Display>Sleep and set it to 'never'. And If you want to wake up from sleep,just DON'T TOUCH mouse,keypad or touchpad.. press the Power Button on the laptop and repress it after about a second. Hope that helps
I can make it wake up from sleep with power button but after waking up, it does not give any form of responds to input devices.
Any idea? Going to set Sleep mode to Never, just exploring how to solve this.
I wake up my device by pressing spacebar then alt-f1 then alt-f7 then power, hope it works for you
ethank82 said:
I can make it wake up from sleep with power button but after waking up, it does not give any form of responds to input devices.
Any idea? Going to set Sleep mode to Never, just exploring how to solve this.
Click to expand...
Click to collapse
Try pressing the power button twice(After waiting about 2 seconds),it works for me that way.
A temporary fix to bring wifi back after computer sleeps
TheBasterd said:
Sleep mode does not work properly. Dont let it go to sleep.
Click to expand...
Click to collapse
I found a solution for this problem by rooting my RemixOS then do the following steps
1) Root
2) Download rootbrowser
3) Open rootbrowser and goto /system/etc
4) Edit init.sh
5) Create a new function called init() like below
init()
{
rmmod bcma
rmmod wl
rmmod b43
rmmod ssb
modprobe -r sta ssb wl
modprobe wl
dhcpcd wlan0
}
6) Now go down the line do_init()
7) enter init as one of a new line at the bottom of that function
8) Now every time your computer goes sleep, just open rootbrowser, goto /system/etc/ and execute init.sh
9) Click on the WIFI icon and it should refresh and reconnect again
I'm looking to add the script in the automatic wake after sleep so I'll be updating once I find out the good place for it in RemixOS
Love RemixOS but it's still a bit buggy as hell to use.
elaborate a little
hitandrun972 said:
I found a solution for this problem by rooting my RemixOS then do the following steps
1) Root
2) Download rootbrowser
3) Open rootbrowser and goto /system/etc
4) Edit init.sh
5) Create a new function called init() like below
init()
{
rmmod bcma
rmmod wl
rmmod b43
rmmod ssb
modprobe -r sta ssb wl
modprobe wl
dhcpcd wlan0
}
6) Now go down the line do_init()
7) enter init as one of a new line at the bottom of that function
8) Now every time your computer goes sleep, just open rootbrowser, goto /system/etc/ and execute init.sh
9) Click on the WIFI icon and it should refresh and reconnect again
I'm looking to add the script in the automatic wake after sleep so I'll be updating once I find out the good place for it in RemixOS
Love RemixOS but it's still a bit buggy as hell to use.
Click to expand...
Click to collapse
i dont understand the instructions plus mine looks different ........ #
# Copyright (C) 2013-2015 The Android-x86 Open Source Project
#
# License: GNU Public License v2 or later
#
function set_property()
{
setprop "$1" "$2"
[ -n "$DEBUG" ] && echo "$1"="$2" >> /dev/x86.prop
}
function init_misc()
{
# device information
setprop ro.product.manufacturer "$(cat $DMIPATH/sys_vendor)"
setprop ro.product.model "$PRODUCT"
# a hack for USB modem
lsusb | grep 1a8d:1000 && eject
# in case no cpu governor driver autoloads
[ -d /sys/devices/system/cpu/cpu0/cpufreq ] || modprobe acpi-cpufreq
}
function init_hal_audio()
{
case "$PRODUCT" in
VirtualBox*|Bochs*)
[ -d /proc/asound/card0 ] || modprobe snd-sb16 isapnp=0 irq=5
;;
*)
;;
esac
if [ "`cat /proc/asound/card0/id`" = "IntelHDMI" ]; then
[ -d /proc/asound/card1 ] || set_property ro.hardware.audio.primary hdmi
fi
}
function init_hal_bluetooth()
{
for r in /sys/class/rfkill/*; do
type=$(cat $r/type)
[ "$type" = "wlan" -o "$type" = "bluetooth" ] && echo 1 > $r/state
done
case "$PRODUCT" in
T10*TA|HP*Omni*)
BTUART_PORT=/dev/ttyS1
;;
MacBookPro8*)
rmmod b43
modprobe b43 btcoex=0
modprobe btusb
;;
# FIXME
# Fix MacBook 2013-2015 (Air6/7&Pro11/12) BCM4360 ssb&wl conflict.
MacBookPro11* | MacBookPro12* | MacBookAir6* | MacBookAir7*)
rmmod b43
rmmod ssb
rmmod bcma
rmmod wl
modprobe wl
modprobe btusb
;;
*)
for bt in $(lsusb -v | awk ' /Class:.E0/ { print $9 } '); do
chown 1002.1002 $bt && chmod 660 $bt
done
modprobe btusb
;;
esac
if [ -n "$BTUART_PORT" ]; then
set_property hal.bluetooth.uart $BTUART_PORT
chown bluetooth.bluetooth $BTUART_PORT
start btattach:-B$BTUART_PORT
log -t hciconfig -p i "`hciconfig`"
fi
}
function init_hal_camera()
{
return
}
function init_hal_gps()
{
# TODO
return
}
function set_drm_mode()
{
case "$PRODUCT" in
ET1602*)
drm_mode=1366x768
;;
*)
;;
esac
[ -n "$drm_mode" ] && set_property debug.drm.mode.force $drm_mode
}
function init_uvesafb()
{
case "$PRODUCT" in
ET2002*)
UVESA_MODE=${UVESA_MODE:-1600x900}
;;
*)
;;
esac
[ "$HWACCEL" = "0" ] && bpp=16 || bpp=32
modprobe uvesafb mode_option=${UVESA_MODE:-1024x768}-$bpp ${UVESA_OPTION:-mtrr=3 scroll=redraw}
}
function init_hal_gralloc()
{
case "$(cat /proc/fb | head -1)" in
*virtiodrmfb)
# set_property ro.hardware.hwcomposer drm
;&
0*inteldrmfb|0*radeondrmfb|0*nouveaufb|0*svgadrmfb)
set_property ro.hardware.gralloc drm
set_drm_mode
;;
"")
init_uvesafb
;&
0*)
;;
esac
[ -n "$DEBUG" ] && set_property debug.egl.trace error
}
function init_hal_hwcomposer()
{
# TODO
return
}
function init_hal_lights()
{
chown 1000.1000 /sys/class/backlight/*/brightness
}
function init_hal_power()
{
for p in /sys/class/rtc/*; do
echo disabled > $p/device/power/wakeup
done
# TODO
case "$PRODUCT" in
*)
;;
esac
}
function init_hal_sensors()
{
# if we have sensor module for our hardware, use it
ro_hardware=$(getprop ro.hardware)
[ -f /system/lib/hw/sensors.${ro_hardware}.so ] && return 0
local hal_sensors=kbd
case "$(cat $DMIPATH/uevent)" in
*Lucid-MWE*)
set_property ro.ignore_atkbd 1
hal_sensors=hdaps
;;
*ICONIA*W5*)
hal_sensors=w500
;;
*S10-3t*)
hal_sensors=s103t
;;
*Inagua*)
#setkeycodes 0x62 29
#setkeycodes 0x74 56
set_property ro.ignore_atkbd 1
set_property hal.sensors.kbd.type 2
;;
*TEGA*|*2010:svnIntel:*)
set_property ro.ignore_atkbd 1
set_property hal.sensors.kbd.type 1
io_switch 0x0 0x1
setkeycodes 0x6d 125
;;
*DLI*)
set_property ro.ignore_atkbd 1
set_property hal.sensors.kbd.type 1
setkeycodes 0x64 1
setkeycodes 0x65 172
setkeycodes 0x66 120
setkeycodes 0x67 116
setkeycodes 0x68 114
setkeycodes 0x69 115
setkeycodes 0x6c 114
setkeycodes 0x6d 115
;;
*tx2*)
setkeycodes 0xb1 138
setkeycodes 0x8a 152
set_property hal.sensors.kbd.type 6
set_property poweroff.doubleclick 0
set_property qemu.hw.mainkeys 1
;;
*MS-N0E1*)
set_property ro.ignore_atkbd 1
set_property poweroff.doubleclick 0
setkeycodes 0xa5 125
setkeycodes 0xa7 1
setkeycodes 0xe3 142
;;
*Aspire1*25*)
modprobe lis3lv02d_i2c
echo -n "enabled" > /sys/class/thermal/thermal_zone0/mode
;;
*ThinkPad*Tablet*)
modprobe hdaps
hal_sensors=hdaps
;;
*i7Stylus*)
set_property hal.sensors.iio.accel.matrix 1,0,0,0,-1,0,0,0,-1
;;
*ST70416-6*)
set_property hal.sensors.iio.accel.matrix 0,-1,0,-1,0,0,0,0,-1
;;
*ONDATablet*)
set_property hal.sensors.iio.accel.matrix 0,1,0,1,0,0,0,0,-1
;;
*)
;;
esac
# has iio sensor-hub?
if [ -n "`ls /sys/bus/iio/devices/iio:device* 2> /dev/null`" ]; then
busybox chown -R 1000.1000 /sys/bus/iio/devices/iio:device*/
lsmod | grep -q hid_sensor_accel_3d && hal_sensors=hsb || hal_sensors=iio
elif lsmod | grep -q lis3lv02d_i2c; then
hal_sensors=hdaps
fi
set_property ro.hardware.sensors $hal_sensors
}
function create_pointercal()
{
if [ ! -e /data/misc/tscal/pointercal ]; then
mkdir -p /data/misc/tscal
touch /data/misc/tscal/pointercal
chown 1000.1000 /data/misc/tscal /data/misc/tscal/*
chmod 775 /data/misc/tscal
chmod 664 /data/misc/tscal/pointercal
fi
}
function init_tscal()
{
case "$PRODUCT" in
ST70416-6*)
modprobe gslx680_ts_acpi
;&
T91|T101|ET2002|74499FU|945GSE-ITE8712|CF-19[CDYFGKLP]*)
create_pointercal
return
;;
*)
;;
esac
for usbts in $(lsusb | awk '{ print $6 }'); do
case "$usbts" in
0596:0001|0eef:0001)
create_pointercal
return
;;
*)
;;
esac
done
}
function init_ril()
{
case "$(cat $DMIPATH/uevent)" in
*TEGA*|*2010:svnIntel:*|*Lucid-MWE*)
set_property rild.libpath /system/lib/libhuaweigeneric-ril.so
set_property rild.libargs "-d /dev/ttyUSB2 -v /dev/ttyUSB1"
set_property ro.radio.noril no
;;
*)
set_property ro.radio.noril yes
;;
esac
}
function init_cpu_governor()
{
governor=$(getprop cpu.governor)
[ $governor ] && {
for cpu in $(ls -d /sys/devices/system/cpu/cpu?); do
echo $governor > $cpu/cpufreq/scaling_governor || return 1
done
}
}
function do_init()
{
init_misc
init_hal_audio
init_hal_bluetooth
init_hal_camera
init_hal_gps
init_hal_gralloc
init_hal_hwcomposer
init_hal_lights
init_hal_power
init_hal_sensors
init_tscal
init_ril
post_init
}
function do_netconsole()
{
modprobe netconsole netconsole="@/,@$(getprop dhcp.eth0.gateway)/"
}
function do_bootcomplete()
{
init_cpu_governor
[ -z "$(getprop persist.sys.root_access)" ] && setprop persist.sys.root_access 3
# FIXME: autosleep works better on i965?
[ "$(getprop debug.mesa.driver)" = "i965" ] && setprop debug.autosleep 1
lsmod | grep -e brcmfmac && setprop wlan.no-unload-driver 1
case "$PRODUCT" in
1866???|1867???|1869???) # ThinkPad X41 Tablet
start tablet-mode
start wacom-input
setkeycodes 0x6d 115
setkeycodes 0x6e 114
setkeycodes 0x69 28
setkeycodes 0x6b 158
setkeycodes 0x68 172
setkeycodes 0x6c 127
setkeycodes 0x67 217
;;
6363???|6364???|6366???) # ThinkPad X60 Tablet
;&
7762???|7763???|7767???) # ThinkPad X61 Tablet
start tablet-mode
start wacom-input
setkeycodes 0x6d 115
setkeycodes 0x6e 114
setkeycodes 0x69 28
setkeycodes 0x6b 158
setkeycodes 0x68 172
setkeycodes 0x6c 127
setkeycodes 0x67 217
;;
7448???|7449???|7450???|7453???) # ThinkPad X200 Tablet
start tablet-mode
start wacom-input
setkeycodes 0xe012 158
setkeycodes 0x66 172
setkeycodes 0x6b 127
;;
*)
;;
esac
# [ -d /proc/asound/card0 ] || modprobe snd-dummy
for c in $(grep '\[.*\]' /proc/asound/cards | awk '{print $1}'); do
f=/system/etc/alsa/$(cat /proc/asound/card$c/id).state
if [ -e $f ]; then
alsa_ctl -f $f restore $c
else
alsa_ctl init $c
alsa_amixer -c $c set Master on
alsa_amixer -c $c set Master 100%
alsa_amixer -c $c set Headphone on
alsa_amixer -c $c set Headphone 100%
alsa_amixer -c $c set Speaker 100%
alsa_amixer -c $c set Capture 100%
alsa_amixer -c $c set Capture cap
alsa_amixer -c $c set PCM 100 unmute
alsa_amixer -c $c set SPO unmute
alsa_amixer -c $c set 'Mic Boost' 3
alsa_amixer -c $c set 'Internal Mic Boost' 3
fi
done
}
function do_hci()
{
local hci=`hciconfig | grep ^hci | cut -d: -f1`
local btd="`getprop init.svc.bluetoothd`"
log -t bluetoothd -p i "$btd ($hci)"
if [ -n "`getprop hal.bluetooth.uart`" ]; then
[ "`getprop init.svc.bluetoothd`" = "running" ] && hciconfig $hci up
fi
}
PATH=/sbin:/system/bin:/system/xbin
DMIPATH=/sys/class/dmi/id
BOARD=$(cat $DMIPATH/board_name)
PRODUCT=$(cat $DMIPATH/product_name)
# import cmdline variables
for c in `cat /proc/cmdline`; do
case $c in
BOOT_IMAGE=*|iso-scan/*|*.*=*)
;;
*=*)
eval $c
if [ -z "$1" ]; then
case $c in
HWACCEL=*)
set_property debug.egl.hw $HWACCEL
;;
DEBUG=*)
[ -n "$DEBUG" ] && set_property debug.logcat 1
;;
esac
fi
;;
esac
done
[ -n "$DEBUG" ] && set -x || exec &> /dev/null
# import the vendor specific script
hw_sh=/vendor/etc/init.sh
[ -e $hw_sh ] && source $hw_sh
case "$1" in
netconsole)
[ -n "$DEBUG" ] && do_netconsole
;;
bootcomplete)
do_bootcomplete
;;
hci)
do_hci
;;
init|"")
do_init
;;
esac
---------- Post added at 07:12 PM ---------- Previous post was at 07:07 PM ----------
joeylikesubuntu said:
i dont understand the instructions plus mine looks different ........ #
# Copyright (C) 2013-2015 The Android-x86 Open Source Project
#
# License: GNU Public License v2 or later
#
function set_property()
{
setprop "$1" "$2"
[ -n "$DEBUG" ] && echo "$1"="$2" >> /dev/x86.prop
}
function init_misc()
{
# device information
setprop ro.product.manufacturer "$(cat $DMIPATH/sys_vendor)"
setprop ro.product.model "$PRODUCT"
# a hack for USB modem
lsusb | grep 1a8d:1000 && eject
# in case no cpu governor driver autoloads
[ -d /sys/devices/system/cpu/cpu0/cpufreq ] || modprobe acpi-cpufreq
}
function init_hal_audio()
{
case "$PRODUCT" in
VirtualBox*|Bochs*)
[ -d /proc/asound/card0 ] || modprobe snd-sb16 isapnp=0 irq=5
;;
*)
;;
esac
if [ "`cat /proc/asound/card0/id`" = "IntelHDMI" ]; then
[ -d /proc/asound/card1 ] || set_property ro.hardware.audio.primary hdmi
fi
}
function init_hal_bluetooth()
{
for r in /sys/class/rfkill/*; do
type=$(cat $r/type)
[ "$type" = "wlan" -o "$type" = "bluetooth" ] && echo 1 > $r/state
done
case "$PRODUCT" in
T10*TA|HP*Omni*)
BTUART_PORT=/dev/ttyS1
;;
MacBookPro8*)
rmmod b43
modprobe b43 btcoex=0
modprobe btusb
;;
# FIXME
# Fix MacBook 2013-2015 (Air6/7&Pro11/12) BCM4360 ssb&wl conflict.
MacBookPro11* | MacBookPro12* | MacBookAir6* | MacBookAir7*)
rmmod b43
rmmod ssb
rmmod bcma
rmmod wl
modprobe wl
modprobe btusb
;;
*)
for bt in $(lsusb -v | awk ' /Class:.E0/ { print $9 } '); do
chown 1002.1002 $bt && chmod 660 $bt
done
modprobe btusb
;;
esac
if [ -n "$BTUART_PORT" ]; then
set_property hal.bluetooth.uart $BTUART_PORT
chown bluetooth.bluetooth $BTUART_PORT
start btattach:-B$BTUART_PORT
log -t hciconfig -p i "`hciconfig`"
fi
}
function init_hal_camera()
{
return
}
function init_hal_gps()
{
# TODO
return
}
function set_drm_mode()
{
case "$PRODUCT" in
ET1602*)
drm_mode=1366x768
;;
*)
;;
esac
[ -n "$drm_mode" ] && set_property debug.drm.mode.force $drm_mode
}
function init_uvesafb()
{
case "$PRODUCT" in
ET2002*)
UVESA_MODE=${UVESA_MODE:-1600x900}
;;
*)
;;
esac
[ "$HWACCEL" = "0" ] && bpp=16 || bpp=32
modprobe uvesafb mode_option=${UVESA_MODE:-1024x768}-$bpp ${UVESA_OPTION:-mtrr=3 scroll=redraw}
}
function init_hal_gralloc()
{
case "$(cat /proc/fb | head -1)" in
*virtiodrmfb)
# set_property ro.hardware.hwcomposer drm
;&
0*inteldrmfb|0*radeondrmfb|0*nouveaufb|0*svgadrmfb)
set_property ro.hardware.gralloc drm
set_drm_mode
;;
"")
init_uvesafb
;&
0*)
;;
esac
[ -n "$DEBUG" ] && set_property debug.egl.trace error
}
function init_hal_hwcomposer()
{
# TODO
return
}
function init_hal_lights()
{
chown 1000.1000 /sys/class/backlight/*/brightness
}
function init_hal_power()
{
for p in /sys/class/rtc/*; do
echo disabled > $p/device/power/wakeup
done
# TODO
case "$PRODUCT" in
*)
;;
esac
}
function init_hal_sensors()
{
# if we have sensor module for our hardware, use it
ro_hardware=$(getprop ro.hardware)
[ -f /system/lib/hw/sensors.${ro_hardware}.so ] && return 0
local hal_sensors=kbd
case "$(cat $DMIPATH/uevent)" in
*Lucid-MWE*)
set_property ro.ignore_atkbd 1
hal_sensors=hdaps
;;
*ICONIA*W5*)
hal_sensors=w500
;;
*S10-3t*)
hal_sensors=s103t
;;
*Inagua*)
#setkeycodes 0x62 29
#setkeycodes 0x74 56
set_property ro.ignore_atkbd 1
set_property hal.sensors.kbd.type 2
;;
*TEGA*|*2010:svnIntel:*)
set_property ro.ignore_atkbd 1
set_property hal.sensors.kbd.type 1
io_switch 0x0 0x1
setkeycodes 0x6d 125
;;
*DLI*)
set_property ro.ignore_atkbd 1
set_property hal.sensors.kbd.type 1
setkeycodes 0x64 1
setkeycodes 0x65 172
setkeycodes 0x66 120
setkeycodes 0x67 116
setkeycodes 0x68 114
setkeycodes 0x69 115
setkeycodes 0x6c 114
setkeycodes 0x6d 115
;;
*tx2*)
setkeycodes 0xb1 138
setkeycodes 0x8a 152
set_property hal.sensors.kbd.type 6
set_property poweroff.doubleclick 0
set_property qemu.hw.mainkeys 1
;;
*MS-N0E1*)
set_property ro.ignore_atkbd 1
set_property poweroff.doubleclick 0
setkeycodes 0xa5 125
setkeycodes 0xa7 1
setkeycodes 0xe3 142
;;
*Aspire1*25*)
modprobe lis3lv02d_i2c
echo -n "enabled" > /sys/class/thermal/thermal_zone0/mode
;;
*ThinkPad*Tablet*)
modprobe hdaps
hal_sensors=hdaps
;;
*i7Stylus*)
set_property hal.sensors.iio.accel.matrix 1,0,0,0,-1,0,0,0,-1
;;
*ST70416-6*)
set_property hal.sensors.iio.accel.matrix 0,-1,0,-1,0,0,0,0,-1
;;
*ONDATablet*)
set_property hal.sensors.iio.accel.matrix 0,1,0,1,0,0,0,0,-1
;;
*)
;;
esac
# has iio sensor-hub?
if [ -n "`ls /sys/bus/iio/devices/iio:device* 2> /dev/null`" ]; then
busybox chown -R 1000.1000 /sys/bus/iio/devices/iio:device*/
lsmod | grep -q hid_sensor_accel_3d && hal_sensors=hsb || hal_sensors=iio
elif lsmod | grep -q lis3lv02d_i2c; then
hal_sensors=hdaps
fi
set_property ro.hardware.sensors $hal_sensors
}
function create_pointercal()
{
if [ ! -e /data/misc/tscal/pointercal ]; then
mkdir -p /data/misc/tscal
touch /data/misc/tscal/pointercal
chown 1000.1000 /data/misc/tscal /data/misc/tscal/*
chmod 775 /data/misc/tscal
chmod 664 /data/misc/tscal/pointercal
fi
}
function init_tscal()
{
case "$PRODUCT" in
ST70416-6*)
modprobe gslx680_ts_acpi
;&
T91|T101|ET2002|74499FU|945GSE-ITE8712|CF-19[CDYFGKLP]*)
create_pointercal
return
;;
*)
;;
esac
for usbts in $(lsusb | awk '{ print $6 }'); do
case "$usbts" in
0596:0001|0eef:0001)
create_pointercal
return
;;
*)
;;
esac
done
}
function init_ril()
{
case "$(cat $DMIPATH/uevent)" in
*TEGA*|*2010:svnIntel:*|*Lucid-MWE*)
set_property rild.libpath /system/lib/libhuaweigeneric-ril.so
set_property rild.libargs "-d /dev/ttyUSB2 -v /dev/ttyUSB1"
set_property ro.radio.noril no
;;
*)
set_property ro.radio.noril yes
;;
esac
}
function init_cpu_governor()
{
governor=$(getprop cpu.governor)
[ $governor ] && {
for cpu in $(ls -d /sys/devices/system/cpu/cpu?); do
echo $governor > $cpu/cpufreq/scaling_governor || return 1
done
}
}
function do_init()
{
init_misc
init_hal_audio
init_hal_bluetooth
init_hal_camera
init_hal_gps
init_hal_gralloc
init_hal_hwcomposer
init_hal_lights
init_hal_power
init_hal_sensors
init_tscal
init_ril
post_init
}
function do_netconsole()
{
modprobe netconsole netconsole="@/,@$(getprop dhcp.eth0.gateway)/"
}
function do_bootcomplete()
{
init_cpu_governor
[ -z "$(getprop persist.sys.root_access)" ] && setprop persist.sys.root_access 3
# FIXME: autosleep works better on i965?
[ "$(getprop debug.mesa.driver)" = "i965" ] && setprop debug.autosleep 1
lsmod | grep -e brcmfmac && setprop wlan.no-unload-driver 1
case "$PRODUCT" in
1866???|1867???|1869???) # ThinkPad X41 Tablet
start tablet-mode
start wacom-input
setkeycodes 0x6d 115
setkeycodes 0x6e 114
setkeycodes 0x69 28
setkeycodes 0x6b 158
setkeycodes 0x68 172
setkeycodes 0x6c 127
setkeycodes 0x67 217
;;
6363???|6364???|6366???) # ThinkPad X60 Tablet
;&
7762???|7763???|7767???) # ThinkPad X61 Tablet
start tablet-mode
start wacom-input
setkeycodes 0x6d 115
setkeycodes 0x6e 114
setkeycodes 0x69 28
setkeycodes 0x6b 158
setkeycodes 0x68 172
setkeycodes 0x6c 127
setkeycodes 0x67 217
;;
7448???|7449???|7450???|7453???) # ThinkPad X200 Tablet
start tablet-mode
start wacom-input
setkeycodes 0xe012 158
setkeycodes 0x66 172
setkeycodes 0x6b 127
;;
*)
;;
esac
# [ -d /proc/asound/card0 ] || modprobe snd-dummy
for c in $(grep '\[.*\]' /proc/asound/cards | awk '{print $1}'); do
f=/system/etc/alsa/$(cat /proc/asound/card$c/id).state
if [ -e $f ]; then
alsa_ctl -f $f restore $c
else
alsa_ctl init $c
alsa_amixer -c $c set Master on
alsa_amixer -c $c set Master 100%
alsa_amixer -c $c set Headphone on
alsa_amixer -c $c set Headphone 100%
alsa_amixer -c $c set Speaker 100%
alsa_amixer -c $c set Capture 100%
alsa_amixer -c $c set Capture cap
alsa_amixer -c $c set PCM 100 unmute
alsa_amixer -c $c set SPO unmute
alsa_amixer -c $c set 'Mic Boost' 3
alsa_amixer -c $c set 'Internal Mic Boost' 3
fi
done
}
function do_hci()
{
local hci=`hciconfig | grep ^hci | cut -d: -f1`
local btd="`getprop init.svc.bluetoothd`"
log -t bluetoothd -p i "$btd ($hci)"
if [ -n "`getprop hal.bluetooth.uart`" ]; then
[ "`getprop init.svc.bluetoothd`" = "running" ] && hciconfig $hci up
fi
}
PATH=/sbin:/system/bin:/system/xbin
DMIPATH=/sys/class/dmi/id
BOARD=$(cat $DMIPATH/board_name)
PRODUCT=$(cat $DMIPATH/product_name)
# import cmdline variables
for c in `cat /proc/cmdline`; do
case $c in
BOOT_IMAGE=*|iso-scan/*|*.*=*)
;;
*=*)
eval $c
if [ -z "$1" ]; then
case $c in
HWACCEL=*)
set_property debug.egl.hw $HWACCEL
;;
DEBUG=*)
[ -n "$DEBUG" ] && set_property debug.logcat 1
;;
esac
fi
;;
esac
done
[ -n "$DEBUG" ] && set -x || exec &> /dev/null
# import the vendor specific script
hw_sh=/vendor/etc/init.sh
[ -e $hw_sh ] && source $hw_sh
case "$1" in
netconsole)
[ -n "$DEBUG" ] && do_netconsole
;;
bootcomplete)
do_bootcomplete
;;
hci)
do_hci
;;
init|"")
do_init
;;
esac
Click to expand...
Click to collapse
im running remix os on a root folder of ubuntu 17.10 using grub customizer
dell inspiron 1545
gjiehs said:
I'm currently on 2.0.205. Running 32-bit Version Remix OS directly from SSD, on Asus 1015PEM. I also face the problem of waking up the netbook from sleep with keyboard, trackpad and mouse.
Finally managed to wake it up by physically closing the lid of my netbook and reopening. Hope it helps someone.
Click to expand...
Click to collapse
this is exactly my problem! when i close the lid remix OS goes to sleep, when i open the lid its still in the sleep mode. i can see the lid light in the screen but no remix OS ! tried the power button but no luck !

[Error] Installing Ubuntu in Android (urgent help needed)

Can anyone help me solve this issue?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This is the boot script i am using
PHP:
###########################################
# Linux boot script V9 for Android #
# Built by Zachary Powell (zacthespack) #
# and Martin Møller (Tuxling) #
# Thanks to: #
# Johan Vromans #
# Marshall Levin #
# and to everyone at XDA! #
# Updated to work on Lenovo Tablets and #
# with ext4 .img files by Robherc #
# Feel free to edit/use this script as you#
# like but credit Linuxonandroid.org #
###########################################
# $ver: V9 #
###########################################
###########################################
# This is a function we use to stop the #
# script in case of errors #
###########################################
error_exit() {
echo "Error: $1"
exit 1
}
###########################################
# Set up variables #
###########################################
if [ -f /data/data/com.zpwebsites.linuxonandroid/files/busybox ]; then
export bbox=/data/data/com.zpwebsites.linuxonandroid/files/busybox
elif [ -f /data/data/com.zpwebsites.linuxonandroid.opensource/files/busybox ]; then
export bbox=/data/data/com.zpwebsites.linuxonandroid.opensource/files/busybox
else
export bbox=/system/xbin/busybox
fi
export usermounts=android # Base folder all user mounts are done in, should be moved to app later
export imgfile=$(dirname $0)/ubuntu.img # Default image file, another can be set by using an argument
export bin=/system/bin
export mnt=/data/local/mnt
export USER=root
if [[ ! -d $mnt ]]; then mkdir $mnt; fi
export PATH=$bin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/games:$PATH
export TERM=linux
export HOME=/root
export SdMounted=no
###########################################
# Handle arguments if present #
###########################################
if [ $# -ne 0 ]; then
if [ -f $1 ]; then # Is full path present?
imgfile=$1
elif [ -f $(dirname $0)/$1 ]; then # Is only a filename present?
imgfile=$(dirname $0)/$1
else
error_exit "Image file not found!($1)"
fi
fi
###########################################
# If a md5 file is found we check it here #
###########################################
if [ -f $imgfile.md5 ]; then
echo "MD5 file found, use to check .img file? (y/n)"
read answer
if [ $answer == y ]; then
echo -n "Validating image checksum... "
$bbox md5sum -c -s $imgfile.md5
if [ $? -ne 0 ];then
echo "FAILED!"
error_exit "Checksum failed! The image is corrupted!"
else
echo "OK"
rm $imgfile.md5
fi
fi
fi
################################
# Find and read config file #
# or use defaults if not found #
################################
use_swap=no
cfgfile=$imgfile.config # Default config file if not specified
if [ -f $imgfile.config ]; then
source $imgfile.config
fi
###########################################
# Set Swap up if wanted #
# #
###########################################
if [ $use_swap == yes ]; then
if [ -f $imgfile.swap ]; then
echo "Swap file found, using file"
echo "Turning on swap (if it errors here you do not have swap support)"
swapon $imgfile.swap
else
echo "Creating Swap file"
dd if=/dev/zero of=$imgfile.swap bs=1048576 count=1024
mkswap $imgfile.swap
echo "Turning on swap (if it errors here you do not have swap support)"
swapon $imgfile.swap
fi
fi
###########################################
# Set up loop device and mount image #
###########################################
echo -n "Checking loop device... "
if [ -b /dev/block/loop255 ]; then
echo "FOUND"
else
echo "MISSING"
# Loop device not found so we create it and verify it was actually created
echo -n "Creating loop device... "
$bbox mknod /dev/block/loop255 b 7 255
if [ -b /dev/block/loop255 ]; then
echo "OK"
else
echo "FAILED"
error_exit "Unable to create loop device!"
fi
fi
$bbox losetup /dev/block/loop255 $imgfile
if [ $? -ne 0 ];then error_exit "Unable to attach image to loop device! (Image = $imgfile)"; fi
$bbox mount -t auto /dev/block/loop255 $mnt
if [ $? -ne 0 ];then error_exit "Unable to mount the loop device!"; fi
###########################################
# Mount all required partitions #
###########################################
$bbox mount -o bind /dev $mnt/dev
if [ $? -ne 0 ];then error_exit "Unable to mount $mnt/dev!"; fi
$bbox mount -t devpts devpts $mnt/dev/pts
if [ $? -ne 0 ];then error_exit "Unable to mount $mnt/dev/pts!"; fi
$bbox mount -t proc proc $mnt/proc
if [ $? -ne 0 ];then error_exit "Unable to mount $mnt/proc!"; fi
$bbox mount -t sysfs sysfs $mnt/sys
if [ $? -ne 0 ];then error_exit "Unable to mount $mnt/sys!"; fi
$bbox mount -o bind /sdcard $mnt/sdcard
if [ $? -ne 0 ];then error_exit "Unable to bind $mnt/sdcard!"; fi
if [[ ! -d $mnt/root/cfg ]]; then mkdir $mnt/root/cfg; fi
$bbox mount -o bind $(dirname $imgfile) $mnt/root/cfg
###########################################
# Checks if you have a external sdcard #
# and mounts it if you do #
###########################################
if [ -d /sdcard/external_sd ]; then
$bbox mount -o bind /sdcard/external_sd $mnt/external_sd
if [ $? == 0 ];then SdMounted="Yes"; fi
elif [ -d /Removable/MicroSD ]; then
$bbox mount -o bind /Removable/MicroSD $mnt/external_sd
if [ $? == 0 ];then SdMounted="Yes"; fi
elif [ -d /storage/sdcard1 ]; then
$bbox mount -o bind /storage/sdcard1 $mnt/external_sd
if [ $? == 0 ];then SdMounted="Yes"; fi
elif [ -d /storage/extSdCard ]; then
$bbox mount -o bind /storage/extSdCard $mnt/external_sd
if [ $? == 0 ];then SdMounted="Yes"; fi
# This last elif statemet will mount internal memory to /external_sd
# within the chroot environment on some devices.
# You may wish to comment it out if this behavior affects you
elif [ -d /storage ]; then
$bbox mount -o bind /storage $mnt/external_sd
if [ $? == 0 ];then SdMounted="Yes"; fi
# This is the end of the statement to comment out
fi
###########################################
# Mount all user defined mounts if any #
###########################################
if [ -f $imgfile.mounts ]; then
olddir=$(pwd)
echo "Mounting user mounts"
cd $mnt
if [[ ! -d $mnt/$usermounts ]]; then $bbox mkdir -p $usermounts; fi
echo "# Script to unmount user defined mounts, do not delete or edit!" > $imgfile.shutdown
echo "cd $mnt/$usermounts" > $imgfile.shutdown
cd $mnt/$usermounts
for entry in $(cat "$imgfile.mounts"); do
ANDROID=${entry%;*}
LINUX=${entry#*;}
if [[ -d $ANDROID ]]; then
echo -n "Mounting $ANDROID to $usermounts/$LINUX... "
if [[ ! -d $mnt/$usermounts/$LINUX ]]; then $bbox mkdir -p $LINUX; fi
$bbox mount -o bind $ANDROID $mnt/$usermounts/$LINUX &> /dev/null
if [ $? -ne 0 ];then
echo FAIL
if [[ -d $mnt/$usermounts/$LINUX ]]; then $bbox rmdir -p $LINUX; fi
else
echo OK
echo "$bbox umount $mnt/$usermounts/$LINUX" >> $imgfile.shutdown
echo "$bbox rmdir -p $LINUX" >> $imgfile.shutdown
fi
else
echo "Android folder not found: $ANDROID"
fi
done
echo "cd $mnt" >> $imgfile.shutdown
echo "$bbox rmdir -p $usermounts" >> $imgfile.shutdown
cd $olddir
else
echo "No user defined mount points"
fi
###########################################
# Sets up network forwarding #
###########################################
$bbox sysctl -w net.ipv4.ip_forward=1
if [ $? -ne 0 ];then error_exit "Unable to forward network!"; fi
# If NOT $mnt/root/DONOTDELETE.txt exists we setup hosts and resolv.conf now
if [ ! -f $mnt/root/DONOTDELETE.txt ]; then
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
if [ $? -ne 0 ];then error_exit "Unable to write resolv.conf file!"; fi
echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf
echo "127.0.0.1 localhost" > $mnt/etc/hosts
if [ $? -ne 0 ];then error_exit "Unable to write hosts file!"; fi
fi
###########################################
# Chroot into ubuntu #
###########################################
$bbox chroot $mnt /root/init.sh $(basename $imgfile)
###########################################
# Shut down ubuntu #
###########################################
echo "Shutting down Linux ARM"
#for pid in `lsof | grep $mnt | sed -e's/ / /g' | cut -d' ' -f2`; do kill -9 $pid >/dev/null 2>&1; done
for pid in `$bbox lsof | $bbox grep $mnt | $bbox sed -e's/ / /g' | $bbox cut -d' ' -f2`; do $bbox kill -9 $pid >/dev/null 2>&1; done
sleep 5
###########################################
# Unmount all user defined mounts if any #
###########################################
if [ -f $imgfile.shutdown ]; then
echo "Unmounting user defined mounts"
sh $imgfile.shutdown
rm $imgfile.shutdown
fi
$bbox umount $mnt/root/cfg
$bbox umount $mnt/sdcard
if [ $SdMounted == "Yes" ];then $bbox umount $mnt/external_sd; fi
$bbox umount $mnt/dev/pts
$bbox umount $mnt/dev
$bbox umount $mnt/proc
$bbox umount $mnt/sys
$bbox umount $mnt
$bbox losetup -d /dev/block/loop255 &> /dev/null

[Help!!]Rom Building failed!!

Device tree: https://github.com/TheStrixCoder/device_oneplus_enchilada
https://github.com/TheStrixCoder/device_oneplus_sdm845-common
Vendor tree:= https://github.com/TheStrixCoder/proprietary_vendor_oneplus
Kernel Source:= https://github.com/TheStrixCoder/kernel_oneplus_sdm845
ROM Source:=https://github.com/DirtyUnicorns
Error:= https://del.dog/ozexutiziz
Its failing at 99% for some unknown reason.(i have plenty of space in /tmp and build drive).
Can anyone please give me a hint on why its failing..
TIA
Code:
----- Making recovery ramdisk ------
[ 99% 91442/91444] Package target files: /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky.zip
FAILED: /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky.zip
/bin/bash -c "(if [ -d /media/vicky/SSD/DU/out/target/product/enchilada/system/vendor ] && [ ! -h /media/vicky/SSD/DU/out/target/product/enchilada/system/vendor ]; then echo 'Non-symlink /media/vicky/SSD/DU/out/target/product/enchilada/system/vendor detected!' 1>&2; echo 'You cannot install files to /media/vicky/SSD/DU/out/target/product/enchilada/system/vendor while building a separate vendor.img!' 1>&2; exit 1; fi ) && (ln -sf /vendor /media/vicky/SSD/DU/out/target/product/enchilada/system/vendor ) && (rm -rf /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky.zip /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky.zip.list /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky ) && (mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/ /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky ) && (mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT ) && (if [ -d \"/media/vicky/SSD/DU/out/target/product/enchilada/recovery/root\" -a \"\$(ls -A /media/vicky/SSD/DU/out/target/product/enchilada/recovery/root)\" ]; then mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/RAMDISK && prebuilts/build-tools/linux-x86/bin/acp -rd /media/vicky/SSD/DU/out/target/product/enchilada/recovery/root/* /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/RAMDISK; fi ) && (if [ -d \"/media/vicky/SSD/DU/out/target/product/enchilada/install\" -a \"\$(ls -A /media/vicky/SSD/DU/out/target/product/enchilada/install)\" ]; then mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/INSTALL && prebuilts/build-tools/linux-x86/bin/acp -rd /media/vicky/SSD/DU/out/target/product/enchilada/install/* /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/INSTALL; fi ) && (cp /media/vicky/SSD/DU/out/target/product/enchilada/kernel /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/kernel ) && (echo \"androidboot.hardware=qcom androidboot.console=ttyMSM0 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 service_locator.enable=1 swiotlb=2048 androidboot.configfs=true androidboot.usbcontroller=a600000.dwc3 firmware_class.path=/vendor/firmware_mnt/image loop.max_part=7 androidboot.avb_version=0.0 androidboot.vbmeta.avb_version=0.0 buildvariant=userdebug\" > /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/cmdline ) && (echo \"0x80000000\" > /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/base ) && (echo \"4096\" > /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/pagesize ) && (mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT ) && (mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/ROOT ) && (if [ -d \"/media/vicky/SSD/DU/out/target/product/enchilada/root\" -a \"\$(ls -A /media/vicky/SSD/DU/out/target/product/enchilada/root)\" ]; then mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/ROOT && prebuilts/build-tools/linux-x86/bin/acp -rd /media/vicky/SSD/DU/out/target/product/enchilada/root/* /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/ROOT; fi ) && (if [ -d \"/media/vicky/SSD/DU/out/target/product/enchilada/system\" -a \"\$(ls -A /media/vicky/SSD/DU/out/target/product/enchilada/system)\" ]; then mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/SYSTEM && prebuilts/build-tools/linux-x86/bin/acp -rd /media/vicky/SSD/DU/out/target/product/enchilada/system/* /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/SYSTEM; fi ) && (if [ -d \"/media/vicky/SSD/DU/out/target/product/enchilada/data\" -a \"\$(ls -A /media/vicky/SSD/DU/out/target/product/enchilada/data)\" ]; then mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/DATA && prebuilts/build-tools/linux-x86/bin/acp -rd /media/vicky/SSD/DU/out/target/product/enchilada/data/* /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/DATA; fi ) && (mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/OTA ) && (cp /media/vicky/SSD/DU/out/target/product/enchilada/android-info.txt /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/OTA/ ) && (mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/OTA/bin ) && (cp /media/vicky/SSD/DU/out/target/product/enchilada/obj/EXECUTABLES/updater_intermediates/updater /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/OTA/bin/ ) && (mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META ) && (cp /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/apkcerts_intermediates/du_enchilada-apkcerts-eng.vicky.txt /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/apkcerts.txt ) && (echo \"\" > /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/otakeys.txt ) && (cp /media/vicky/SSD/DU/out/target/product/enchilada/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/file_contexts.bin ) && (echo \"recovery_api_version=3\" > /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"fstab_version=2\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"blocksize=262144 \" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"boot_size=67108864\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"no_recovery=true\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"recovery_mount_options=ext4=max_batch_time=0,commit=1,data=ordered,barrier=1,errors=panic,nodelalloc\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"tool_extensions=device/oneplus/enchilada/../common\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"default_system_dev_certificate=build/target/product/security/testkey\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo 'mkbootimg_args=' >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo 'mkbootimg_version_args=--os_version 9 --os_patch_level 2019-01-05' >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"use_set_metadata=1\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"multistage_support=1\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"blockimgdiff_versions=3,4\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_enable=true\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_vbmeta_key_path=external/avb/test/data/testkey_rsa4096.pem\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_vbmeta_algorithm=SHA256_RSA4096\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_vbmeta_args=--flag 2 --padding_size 4096\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_boot_add_hash_footer_args=\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_recovery_add_hash_footer_args=\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"ext_mkuserimg=mkuserimg_mke2fs.sh\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"fs_type=ext4\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"system_size=2998927360\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"userdata_size=118112366592\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"extfs_sparse_flag=-s\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"squashfs_sparse_flag=-s\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"selinux_fc=/media/vicky/SSD/DU/out/target/product/enchilada/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_avbtool=avbtool\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_system_hashtree_enable=true\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_system_add_hashtree_footer_args=--setup_as_rootfs_from_kernel\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_vendor_hashtree_enable=true\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_vendor_add_hashtree_footer_args=\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_product_hashtree_enable=true\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_product_add_hashtree_footer_args=\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"recovery_as_boot=true\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"system_root_image=true\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt; echo \"ramdisk_dir=/media/vicky/SSD/DU/out/target/product/enchilada/root\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && ((cd /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/SYSTEM; find . -type d | sed 's,\$,/,'; find . \\! -type d) | cut -c 3- | sort | sed 's,^,system/,' | /media/vicky/SSD/DU/out/host/linux-x86/bin/fs_config -C -D /media/vicky/SSD/DU/out/target/product/enchilada/system -S /media/vicky/SSD/DU/out/target/product/enchilada/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin -R \"system/\" > /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/filesystem_config.txt ) && ((cd /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/ROOT; find . -type d | sed 's,\$,/,'; find . \\! -type d) | cut -c 3- | sort | sed 's,^,,' | /media/vicky/SSD/DU/out/host/linux-x86/bin/fs_config -C -D /media/vicky/SSD/DU/out/target/product/enchilada/system -S /media/vicky/SSD/DU/out/target/product/enchilada/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin -R \"\" > /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/root_filesystem_config.txt ) && ((cd /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/RAMDISK; find . -type d | sed 's,\$,/,'; find . \\! -type d) | cut -c 3- | sort | sed 's,^,,' | /media/vicky/SSD/DU/out/host/linux-x86/bin/fs_config -C -D /media/vicky/SSD/DU/out/target/product/enchilada/system -S /media/vicky/SSD/DU/out/target/product/enchilada/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin -R \"\" > /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/boot_filesystem_config.txt ) && (cp /media/vicky/SSD/DU/out/target/product/enchilada/obj/ETC/framework_manifest.xml_intermediates/manifest.xml /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/system_manifest.xml ) && (cp /media/vicky/SSD/DU/out/target/product/enchilada/obj/ETC/framework_compatibility_matrix.xml_intermediates/compatibility_matrix.xml /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/system_matrix.xml ) && (cp /media/vicky/SSD/DU/out/target/product/enchilada/obj/ETC/device_compatibility_matrix.xml_intermediates/compatibility_matrix.xml /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/vendor_matrix.xml ) && (PATH=/media/vicky/SSD/DU/out/host/linux-x86/bin/:\$PATH MKBOOTIMG=/media/vicky/SSD/DU/out/host/linux-x86/bin/mkbootimg build/make/tools/releasetools/add_img_to_target_files -a -v -p /media/vicky/SSD/DU/out/host/linux-x86 /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky ) && (find /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META | sort >/media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky.zip.list ) && (find /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky -path /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META -prune -o -print | sort >>/media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky.zip.list ) && (/media/vicky/SSD/DU/out/soong/host/linux-x86/bin/soong_zip -L 0 -d -o /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky.zip -C /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky -l /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky.zip.list )"
Warning: could not read VENDOR/build.prop
++++ boot ++++
building image from target_files BOOT...
running: mkbootfs -f /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/boot_filesystem_config.txt /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/RAMDISK
running: minigzip
running: mkbootimg --kernel /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/kernel --cmdline androidboot.hardware=qcom androidboot.console=ttyMSM0 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 service_locator.enable=1 swiotlb=2048 androidboot.configfs=true androidboot.usbcontroller=a600000.dwc3 firmware_class.path=/vendor/firmware_mnt/image loop.max_part=7 androidboot.avb_version=0.0 androidboot.vbmeta.avb_version=0.0 buildvariant=userdebug --base 0x80000000 --pagesize 4096 --os_version 9 --os_patch_level 2019-01-05 --ramdisk /tmp/tmpBURvLw --output /tmp/tmpHFwfll
running: avbtool add_hash_footer --image /tmp/tmpHFwfll --partition_size 67108864 --partition_name boot --salt 0baf6f739234cc50a1eaa7040e74d28b55ebd72a7781dbcaf3d28e590591138d
++++ system ++++
creating system.img...
Running: avbtool add_hashtree_footer --partition_size 2998927360 --calc_max_image_size --setup_as_rootfs_from_kernel
2951528448
Running: mkuserimg_mke2fs.sh -s /tmp/tmp6SWt0u /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.img ext4 / 2951528448 -j 0 -T 1230748200 -C /tmp/merged_fs_configmuBkDB.txt -B /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.map -L / -M 0 -U 74ab2787-89b4-5f32-9f21-2c085107ac1e -S 1fdfba2c-bfa3-5d87-994f-0a46b7071412 /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/file_contexts.bin
MKE2FS_CONFIG=./system/extras/ext4_utils/mke2fs.conf E2FSPROGS_FAKE_TIME=1230748200 mke2fs -O ^has_journal -L / -m 0 -U 74ab2787-89b4-5f32-9f21-2c085107ac1e -E android_sparse,hash_seed=1fdfba2c-bfa3-5d87-994f-0a46b7071412 -t ext4 -b 4096 /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.img 720588
mke2fs 1.43.3 (04-Sep-2016)
Creating filesystem with 720588 4k blocks and 180224 inodes
Filesystem UUID: 74ab2787-89b4-5f32-9f21-2c085107ac1e
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
E2FSPROGS_FAKE_TIME=1230748200 e2fsdroid -T 1230748200 -C /tmp/merged_fs_configmuBkDB.txt -B /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.map -S /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/file_contexts.bin -f /tmp/tmp6SWt0u -a / /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.img
failed to find [/system] in canned fs_config
loaded 2933 fs_config entries
Error: '['mkuserimg_mke2fs.sh', '-s', '/tmp/tmp6SWt0u', '/media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.img', 'ext4', '/', '2951528448', '-j', '0', '-T', '1230748200', '-C', '/tmp/merged_fs_configmuBkDB.txt', '-B', '/media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.map', '-L', '/', '-M', '0', '-U', '74ab2787-89b4-5f32-9f21-2c085107ac1e', '-S', '1fdfba2c-bfa3-5d87-994f-0a46b7071412', '/media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/file_contexts.bin']' failed with exit code 4:
MKE2FS_CONFIG=./system/extras/ext4_utils/mke2fs.conf E2FSPROGS_FAKE_TIME=1230748200 mke2fs -O ^has_journal -L / -m 0 -U 74ab2787-89b4-5f32-9f21-2c085107ac1e -E android_sparse,hash_seed=1fdfba2c-bfa3-5d87-994f-0a46b7071412 -t ext4 -b 4096 /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.img 720588
mke2fs 1.43.3 (04-Sep-2016)
Creating filesystem with 720588 4k blocks and 180224 inodes
Filesystem UUID: 74ab2787-89b4-5f32-9f21-2c085107ac1e
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
E2FSPROGS_FAKE_TIME=1230748200 e2fsdroid -T 1230748200 -C /tmp/merged_fs_configmuBkDB.txt -B /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.map -S /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/file_contexts.bin -f /tmp/tmp6SWt0u -a / /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.img
failed to find [/system] in canned fs_config
loaded 2933 fs_config entries
Out of space? The tree size of /tmp/tmp6SWt0u is 1110921216 bytes (1059 MB), with reserved space of 0 bytes (0 MB).
The max image size for filsystem files is 2951528448 bytes (2814 MB), out of a total partition size of 2998927360 bytes (2860 MB).
Traceback (most recent call last):
File "build/make/tools/releasetools/add_img_to_target_files", line 825, in <module>
main(sys.argv[1:])
File "build/make/tools/releasetools/add_img_to_target_files", line 819, in main
AddImagesToTargetFiles(args[0])
File "build/make/tools/releasetools/add_img_to_target_files", line 728, in AddImagesToTargetFiles
output_zip, recovery_img=recovery_image, boot_img=boot_image)
File "build/make/tools/releasetools/add_img_to_target_files", line 150, in AddSystem
block_list=block_list)
File "build/make/tools/releasetools/add_img_to_target_files", line 281, in CreateImage
assert succ, "build " + what + ".img image failed"
AssertionError: build system.img image failed
ninja: build stopped: subcommand failed.
19:14:32 ninja failed with: exit status 1
build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
Bidyadhar said:
Device tree: https://github.com/TheStrixCoder/device_oneplus_enchilada
https://github.com/TheStrixCoder/device_oneplus_sdm845-common
Vendor tree:= https://github.com/TheStrixCoder/proprietary_vendor_oneplus
Kernel Source:= https://github.com/TheStrixCoder/kernel_oneplus_sdm845
ROM Source:=https://github.com/DirtyUnicorns
Haste or Dogbin URL:=https://del.dog/ozexutiziz
Its failing at 99% for some unknown reason.(i have plenty of space in /tmp and build drive).
Can anyone please give me a hint on why its failing..
TIA
Code:
[ 99% 91442/91444] Package target files: /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky.zip
FAILED: /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky.zip
/bin/bash -c "(if [ -d /media/vicky/SSD/DU/out/target/product/enchilada/system/vendor ] && [ ! -h /media/vicky/SSD/DU/out/target/product/enchilada/system/vendor ]; then echo 'Non-symlink /media/vicky/SSD/DU/out/target/product/enchilada/system/vendor detected!' 1>&2; echo 'You cannot install files to /media/vicky/SSD/DU/out/target/product/enchilada/system/vendor while building a separate vendor.img!' 1>&2; exit 1; fi ) && (ln -sf /vendor /media/vicky/SSD/DU/out/target/product/enchilada/system/vendor ) && (rm -rf /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky.zip /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky.zip.list /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky ) && (mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/ /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky ) && (mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT ) && (if [ -d \"/media/vicky/SSD/DU/out/target/product/enchilada/recovery/root\" -a \"\$(ls -A /media/vicky/SSD/DU/out/target/product/enchilada/recovery/root)\" ]; then mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/RAMDISK && prebuilts/build-tools/linux-x86/bin/acp -rd /media/vicky/SSD/DU/out/target/product/enchilada/recovery/root/* /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/RAMDISK; fi ) && (if [ -d \"/media/vicky/SSD/DU/out/target/product/enchilada/install\" -a \"\$(ls -A /media/vicky/SSD/DU/out/target/product/enchilada/install)\" ]; then mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/INSTALL && prebuilts/build-tools/linux-x86/bin/acp -rd /media/vicky/SSD/DU/out/target/product/enchilada/install/* /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/INSTALL; fi ) && (cp /media/vicky/SSD/DU/out/target/product/enchilada/kernel /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/kernel ) && (echo \"androidboot.hardware=qcom androidboot.console=ttyMSM0 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 service_locator.enable=1 swiotlb=2048 androidboot.configfs=true androidboot.usbcontroller=a600000.dwc3 firmware_class.path=/vendor/firmware_mnt/image loop.max_part=7 androidboot.avb_version=0.0 androidboot.vbmeta.avb_version=0.0 buildvariant=userdebug\" > /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/cmdline ) && (echo \"0x80000000\" > /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/base ) && (echo \"4096\" > /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/pagesize ) && (mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT ) && (mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/ROOT ) && (if [ -d \"/media/vicky/SSD/DU/out/target/product/enchilada/root\" -a \"\$(ls -A /media/vicky/SSD/DU/out/target/product/enchilada/root)\" ]; then mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/ROOT && prebuilts/build-tools/linux-x86/bin/acp -rd /media/vicky/SSD/DU/out/target/product/enchilada/root/* /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/ROOT; fi ) && (if [ -d \"/media/vicky/SSD/DU/out/target/product/enchilada/system\" -a \"\$(ls -A /media/vicky/SSD/DU/out/target/product/enchilada/system)\" ]; then mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/SYSTEM && prebuilts/build-tools/linux-x86/bin/acp -rd /media/vicky/SSD/DU/out/target/product/enchilada/system/* /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/SYSTEM; fi ) && (if [ -d \"/media/vicky/SSD/DU/out/target/product/enchilada/data\" -a \"\$(ls -A /media/vicky/SSD/DU/out/target/product/enchilada/data)\" ]; then mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/DATA && prebuilts/build-tools/linux-x86/bin/acp -rd /media/vicky/SSD/DU/out/target/product/enchilada/data/* /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/DATA; fi ) && (mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/OTA ) && (cp /media/vicky/SSD/DU/out/target/product/enchilada/android-info.txt /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/OTA/ ) && (mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/OTA/bin ) && (cp /media/vicky/SSD/DU/out/target/product/enchilada/obj/EXECUTABLES/updater_intermediates/updater /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/OTA/bin/ ) && (mkdir -p /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META ) && (cp /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/apkcerts_intermediates/du_enchilada-apkcerts-eng.vicky.txt /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/apkcerts.txt ) && (echo \"\" > /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/otakeys.txt ) && (cp /media/vicky/SSD/DU/out/target/product/enchilada/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/file_contexts.bin ) && (echo \"recovery_api_version=3\" > /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"fstab_version=2\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"blocksize=262144 \" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"boot_size=67108864\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"no_recovery=true\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"recovery_mount_options=ext4=max_batch_time=0,commit=1,data=ordered,barrier=1,errors=panic,nodelalloc\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"tool_extensions=device/oneplus/enchilada/../common\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"default_system_dev_certificate=build/target/product/security/testkey\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo 'mkbootimg_args=' >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo 'mkbootimg_version_args=--os_version 9 --os_patch_level 2019-01-05' >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"use_set_metadata=1\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"multistage_support=1\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"blockimgdiff_versions=3,4\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_enable=true\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_vbmeta_key_path=external/avb/test/data/testkey_rsa4096.pem\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_vbmeta_algorithm=SHA256_RSA4096\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_vbmeta_args=--flag 2 --padding_size 4096\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_boot_add_hash_footer_args=\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_recovery_add_hash_footer_args=\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"ext_mkuserimg=mkuserimg_mke2fs.sh\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"fs_type=ext4\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"system_size=2998927360\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"userdata_size=118112366592\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"extfs_sparse_flag=-s\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"squashfs_sparse_flag=-s\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"selinux_fc=/media/vicky/SSD/DU/out/target/product/enchilada/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_avbtool=avbtool\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_system_hashtree_enable=true\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_system_add_hashtree_footer_args=--setup_as_rootfs_from_kernel\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_vendor_hashtree_enable=true\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_vendor_add_hashtree_footer_args=\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_product_hashtree_enable=true\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"avb_product_add_hashtree_footer_args=\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"recovery_as_boot=true\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && (echo \"system_root_image=true\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt; echo \"ramdisk_dir=/media/vicky/SSD/DU/out/target/product/enchilada/root\" >> /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/misc_info.txt ) && ((cd /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/SYSTEM; find . -type d | sed 's,\$,/,'; find . \\! -type d) | cut -c 3- | sort | sed 's,^,system/,' | /media/vicky/SSD/DU/out/host/linux-x86/bin/fs_config -C -D /media/vicky/SSD/DU/out/target/product/enchilada/system -S /media/vicky/SSD/DU/out/target/product/enchilada/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin -R \"system/\" > /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/filesystem_config.txt ) && ((cd /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/ROOT; find . -type d | sed 's,\$,/,'; find . \\! -type d) | cut -c 3- | sort | sed 's,^,,' | /media/vicky/SSD/DU/out/host/linux-x86/bin/fs_config -C -D /media/vicky/SSD/DU/out/target/product/enchilada/system -S /media/vicky/SSD/DU/out/target/product/enchilada/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin -R \"\" > /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/root_filesystem_config.txt ) && ((cd /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/RAMDISK; find . -type d | sed 's,\$,/,'; find . \\! -type d) | cut -c 3- | sort | sed 's,^,,' | /media/vicky/SSD/DU/out/host/linux-x86/bin/fs_config -C -D /media/vicky/SSD/DU/out/target/product/enchilada/system -S /media/vicky/SSD/DU/out/target/product/enchilada/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin -R \"\" > /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/boot_filesystem_config.txt ) && (cp /media/vicky/SSD/DU/out/target/product/enchilada/obj/ETC/framework_manifest.xml_intermediates/manifest.xml /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/system_manifest.xml ) && (cp /media/vicky/SSD/DU/out/target/product/enchilada/obj/ETC/framework_compatibility_matrix.xml_intermediates/compatibility_matrix.xml /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/system_matrix.xml ) && (cp /media/vicky/SSD/DU/out/target/product/enchilada/obj/ETC/device_compatibility_matrix.xml_intermediates/compatibility_matrix.xml /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/vendor_matrix.xml ) && (PATH=/media/vicky/SSD/DU/out/host/linux-x86/bin/:\$PATH MKBOOTIMG=/media/vicky/SSD/DU/out/host/linux-x86/bin/mkbootimg build/make/tools/releasetools/add_img_to_target_files -a -v -p /media/vicky/SSD/DU/out/host/linux-x86 /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky ) && (find /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META | sort >/media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky.zip.list ) && (find /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky -path /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META -prune -o -print | sort >>/media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky.zip.list ) && (/media/vicky/SSD/DU/out/soong/host/linux-x86/bin/soong_zip -L 0 -d -o /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky.zip -C /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky -l /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky.zip.list )"
Warning: could not read VENDOR/build.prop
++++ boot ++++
building image from target_files BOOT...
running: mkbootfs -f /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/boot_filesystem_config.txt /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/RAMDISK
running: minigzip
running: mkbootimg --kernel /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/BOOT/kernel --cmdline androidboot.hardware=qcom androidboot.console=ttyMSM0 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 service_locator.enable=1 swiotlb=2048 androidboot.configfs=true androidboot.usbcontroller=a600000.dwc3 firmware_class.path=/vendor/firmware_mnt/image loop.max_part=7 androidboot.avb_version=0.0 androidboot.vbmeta.avb_version=0.0 buildvariant=userdebug --base 0x80000000 --pagesize 4096 --os_version 9 --os_patch_level 2019-01-05 --ramdisk /tmp/tmpBURvLw --output /tmp/tmpHFwfll
running: avbtool add_hash_footer --image /tmp/tmpHFwfll --partition_size 67108864 --partition_name boot --salt 0baf6f739234cc50a1eaa7040e74d28b55ebd72a7781dbcaf3d28e590591138d
++++ system ++++
creating system.img...
Running: avbtool add_hashtree_footer --partition_size 2998927360 --calc_max_image_size --setup_as_rootfs_from_kernel
2951528448
Running: mkuserimg_mke2fs.sh -s /tmp/tmp6SWt0u /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.img ext4 / 2951528448 -j 0 -T 1230748200 -C /tmp/merged_fs_configmuBkDB.txt -B /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.map -L / -M 0 -U 74ab2787-89b4-5f32-9f21-2c085107ac1e -S 1fdfba2c-bfa3-5d87-994f-0a46b7071412 /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/file_contexts.bin
MKE2FS_CONFIG=./system/extras/ext4_utils/mke2fs.conf E2FSPROGS_FAKE_TIME=1230748200 mke2fs -O ^has_journal -L / -m 0 -U 74ab2787-89b4-5f32-9f21-2c085107ac1e -E android_sparse,hash_seed=1fdfba2c-bfa3-5d87-994f-0a46b7071412 -t ext4 -b 4096 /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.img 720588
mke2fs 1.43.3 (04-Sep-2016)
Creating filesystem with 720588 4k blocks and 180224 inodes
Filesystem UUID: 74ab2787-89b4-5f32-9f21-2c085107ac1e
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
E2FSPROGS_FAKE_TIME=1230748200 e2fsdroid -T 1230748200 -C /tmp/merged_fs_configmuBkDB.txt -B /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.map -S /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/file_contexts.bin -f /tmp/tmp6SWt0u -a / /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.img
failed to find [/system] in canned fs_config
loaded 2933 fs_config entries
Error: '['mkuserimg_mke2fs.sh', '-s', '/tmp/tmp6SWt0u', '/media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.img', 'ext4', '/', '2951528448', '-j', '0', '-T', '1230748200', '-C', '/tmp/merged_fs_configmuBkDB.txt', '-B', '/media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.map', '-L', '/', '-M', '0', '-U', '74ab2787-89b4-5f32-9f21-2c085107ac1e', '-S', '1fdfba2c-bfa3-5d87-994f-0a46b7071412', '/media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/file_contexts.bin']' failed with exit code 4:
MKE2FS_CONFIG=./system/extras/ext4_utils/mke2fs.conf E2FSPROGS_FAKE_TIME=1230748200 mke2fs -O ^has_journal -L / -m 0 -U 74ab2787-89b4-5f32-9f21-2c085107ac1e -E android_sparse,hash_seed=1fdfba2c-bfa3-5d87-994f-0a46b7071412 -t ext4 -b 4096 /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.img 720588
mke2fs 1.43.3 (04-Sep-2016)
Creating filesystem with 720588 4k blocks and 180224 inodes
Filesystem UUID: 74ab2787-89b4-5f32-9f21-2c085107ac1e
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
E2FSPROGS_FAKE_TIME=1230748200 e2fsdroid -T 1230748200 -C /tmp/merged_fs_configmuBkDB.txt -B /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.map -S /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/META/file_contexts.bin -f /tmp/tmp6SWt0u -a / /media/vicky/SSD/DU/out/target/product/enchilada/obj/PACKAGING/target_files_intermediates/du_enchilada-target_files-eng.vicky/IMAGES/system.img
failed to find [/system] in canned fs_config
loaded 2933 fs_config entries
Out of space? The tree size of /tmp/tmp6SWt0u is 1110921216 bytes (1059 MB), with reserved space of 0 bytes (0 MB).
The max image size for filsystem files is 2951528448 bytes (2814 MB), out of a total partition size of 2998927360 bytes (2860 MB).
Traceback (most recent call last):
File "build/make/tools/releasetools/add_img_to_target_files", line 825, in <module>
main(sys.argv[1:])
File "build/make/tools/releasetools/add_img_to_target_files", line 819, in main
AddImagesToTargetFiles(args[0])
File "build/make/tools/releasetools/add_img_to_target_files", line 728, in AddImagesToTargetFiles
output_zip, recovery_img=recovery_image, boot_img=boot_image)
File "build/make/tools/releasetools/add_img_to_target_files", line 150, in AddSystem
block_list=block_list)
File "build/make/tools/releasetools/add_img_to_target_files", line 281, in CreateImage
assert succ, "build " + what + ".img image failed"
AssertionError: build system.img image failed
ninja: build stopped: subcommand failed.
19:14:32 ninja failed with: exit status 1
build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
Click to expand...
Click to collapse
What program are you building with
PoochyXXX
PoochyX said:
What program are you building with
PoochyXXX
Click to expand...
Click to collapse
Sorry i didnt get your question
Edit-I am building it on Ubuntu 18.04
Hi Brother,
Could you tell me how you fixed this build error ?
In fact, I have a same problem as yours.
Same error bro..how did you fix this error?
Dhina_17 said:
Same error bro..how did you fix this error?
Click to expand...
Click to collapse
Did you get fix for the above error? I am also facing same error with Lineage OS.
Naveen56 said:
Did you get fix for the above error? I am also facing same error with Lineage OS.
Click to expand...
Click to collapse
Yes sepolicy thing
Dhina_17 said:
Yes sepolicy thing
Click to expand...
Click to collapse
I had to remove this flag from BoardConfig for successful build.
Code:
BOARD_ROOT_EXTRA_SYMLINKS += /mnt/vendor/persist:/persist
Has anyone been able to fix this error?

Need help with errors when finishing the build (CM-14.1)

For the past weeks I've been trying to compile lineage 14.1 (cm-14.1 branch) for my phone and I'm getting this error:
https://pastebin.com/ChEsxc8n
Code:
[ 98% 857/872] Target boot image: /home/fr...d/Lineage/out/target/product/Z01M/boot.img
/home/frost/Android/Lineage/out/target/product/Z01M/boot.img maxsize=68395008 blocksize=135168 total=24012800 reserve=811008
[ 98% 858/872] ----- Making recovery ramdisk ------
Copying baseline ramdisk...
Modifying ramdisk contents...
cp: cannot stat '/home/frost/Android/Lineage/out/target/product/Z01M/root/init.recovery.*.rc': No such file or directory
----- Making uncompressed recovery ramdisk ------
[ 98% 860/872] ----- Making recovery image ------
+/home/frost/Android/Lineage/out/target/product/Z01M/recovery.img maxsize=68395008 blocksize=135168 total=30031872 reserve=811008
----- Made recovery image: /home/frost/Android/Lineage/out/target/product/Z01M/recovery.img --------
[ 99% 864/872] build /home/frost/Android/L...ge/out/target/product/Z01M/obj/NOTICE.html
Combining NOTICE files into HTML
Combining NOTICE files into text
[ 99% 867/872] Construct recovery from boot
failed to reconstruct target deflate chunk 1 [(null)]; treating as normal
chunk 0: type 0 start 0 len 22478858
chunk 1: type 2 start 22478858 len 3942144
chunk 2: type 0 start 24012269 len 531
Construct patches for 3 chunks...
patch 0 is 215 bytes (of 22478858)
patch 1 is 5215187 bytes (of 1533411)
patch 2 is 181 bytes (of 531)
chunk 0: normal ( 0, 22478858) 215
chunk 1: deflate ( 22478858, 7552091) 5215187 (null)
chunk 2: normal ( 30030949, 923) 181
[ 99% 868/872] Target system fs image: /ho...AGING/systemimage_intermediates/system.img
BuildImage: in_dir = /home/frost/Android/Lineage/out/target/product/Z01M/system, out_file = /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/systemimage_intermediates/system.img
fs type is not ext4
Running: mkuserimg.sh -s /home/frost/Android/Lineage/out/target/product/Z01M/system /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/systemimage_intermediates/system.img ext4 system 4831838208 -D /home/frost/Android/Lineage/out/target/product/Z01M/system -L system /home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin
make_ext4fs -s -T -1 -S /home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin -L system -l 4831838208 -a system /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/systemimage_intermediates/system.img /home/frost/Android/Lineage/out/target/product/Z01M/system /home/frost/Android/Lineage/out/target/product/Z01M/system
Creating filesystem with parameters:
Size: 4831838208
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 18432
Label: system
Blocks: 1179648
Block groups: 36
Reserved block group size: 287
Created filesystem with 5340/294912 inodes and 362434/1179648 blocks
Running ['mkuserimg.sh', '-s', '/home/frost/Android/Lineage/out/target/product/Z01M/system', '/home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/systemimage_intermediates/system.img', 'ext4', 'system', '4831838208', '-D', '/home/frost/Android/Lineage/out/target/product/Z01M/system', '-L', 'system', '/home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin'] command, exit code = 0
[ 99% 869/872] Install system fs image: /h...Lineage/out/target/product/Z01M/system.img
/home/frost/Android/Lineage/out/target/product/Z01M/system.img+/home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=4932956160 blocksize=135168 total=1408239079 reserve=49876992
[ 99% 870/872] Package target files: /home...iates/aosp_Z01M-target_files-eng.frost.zip
FAILED: /bin/bash -c "(rm -rf /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost.zip /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost ) && (mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/ /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost ) && (mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY ) && (if [ -d \"/home/frost/Android/Lineage/out/target/product/Z01M/recovery/root\" -a \"\$(ls -A /home/frost/Android/Lineage/out/target/product/Z01M/recovery/root)\" ]; then mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY/RAMDISK && /home/frost/Android/Lineage/out/host/linux-x86/bin/acp -rd /home/frost/Android/Lineage/out/target/product/Z01M/recovery/root/* /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY/RAMDISK; fi ) && (if [ -d \"/home/frost/Android/Lineage/out/target/product/Z01M/install\" -a \"\$(ls -A /home/frost/Android/Lineage/out/target/product/Z01M/install)\" ]; then mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/INSTALL && /home/frost/Android/Lineage/out/host/linux-x86/bin/acp -rd /home/frost/Android/Lineage/out/target/product/Z01M/install/* /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/INSTALL; fi ) && (/home/frost/Android/Lineage/out/host/linux-x86/bin/acp /home/frost/Android/Lineage/out/target/product/Z01M/kernel /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY/kernel ) && (echo \"0x00000100\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY/tags_offset ) && (echo \"cmd_line='console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci earlycon=msm_hsl_uart,0x78af000 androidboot.selinux=permissive buildvariant=eng\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY/cmdline ) && (echo \"0x80000000\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY/base ) && (echo \"2048\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY/pagesize ) && (echo \"0x01000000\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/RECOVERY/ramdisk_offset ) && (mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT ) && (if [ -d \"/home/frost/Android/Lineage/out/target/product/Z01M/root\" -a \"\$(ls -A /home/frost/Android/Lineage/out/target/product/Z01M/root)\" ]; then mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT/RAMDISK && /home/frost/Android/Lineage/out/host/linux-x86/bin/acp -rd /home/frost/Android/Lineage/out/target/product/Z01M/root/* /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT/RAMDISK; fi ) && (/home/frost/Android/Lineage/out/host/linux-x86/bin/acp /home/frost/Android/Lineage/out/target/product/Z01M/kernel /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT/kernel ) && (echo \"0x00000100\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT/tags_offset ) && (echo \"cmd_line='console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci earlycon=msm_hsl_uart,0x78af000 androidboot.selinux=permissive buildvariant=eng\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT/cmdline ) && (echo \"0x80000000\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT/base ) && (echo \"2048\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT/pagesize ) && (echo \"0x01000000\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOT/ramdisk_offset ) && (if [ -d \"/home/frost/Android/Lineage/out/target/product/Z01M/system\" -a \"\$(ls -A /home/frost/Android/Lineage/out/target/product/Z01M/system)\" ]; then mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/SYSTEM && /home/frost/Android/Lineage/out/host/linux-x86/bin/acp -rd /home/frost/Android/Lineage/out/target/product/Z01M/system/* /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/SYSTEM; fi ) && (if [ -d \"/home/frost/Android/Lineage/out/target/product/Z01M/data\" -a \"\$(ls -A /home/frost/Android/Lineage/out/target/product/Z01M/data)\" ]; then mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/DATA && /home/frost/Android/Lineage/out/host/linux-x86/bin/acp -rd /home/frost/Android/Lineage/out/target/product/Z01M/data/* /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/DATA; fi ) && (mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOTABLE_IMAGES ) && (/home/frost/Android/Lineage/out/host/linux-x86/bin/acp /home/frost/Android/Lineage/out/target/product/Z01M/boot.img /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOTABLE_IMAGES/ ) && (/home/frost/Android/Lineage/out/host/linux-x86/bin/acp /home/frost/Android/Lineage/out/target/product/Z01M/recovery.img /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/BOOTABLE_IMAGES/ ) && (mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/OTA ) && (/home/frost/Android/Lineage/out/host/linux-x86/bin/acp /home/frost/Android/Lineage/out/target/product/Z01M/android-info.txt /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/OTA/ ) && (mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/OTA/bin ) && (/home/frost/Android/Lineage/out/host/linux-x86/bin/acp /home/frost/Android/Lineage/out/target/product/Z01M/obj/EXECUTABLES/updater_intermediates/updater /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/OTA/bin/ ) && (mkdir -p /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META ) && (/home/frost/Android/Lineage/out/host/linux-x86/bin/acp /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/apkcerts_intermediates/aosp_Z01M-apkcerts-eng.frost.txt /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/apkcerts.txt ) && (if test -e device/asus/Z01M/../common/releasetools.py; then /home/frost/Android/Lineage/out/host/linux-x86/bin/acp device/asus/Z01M/../common/releasetools.py /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/; fi ) && (echo \"\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/otakeys.txt ) && (/home/frost/Android/Lineage/out/host/linux-x86/bin/acp /home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/file_contexts.bin ) && (echo \"recovery_api_version=3\" > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"fstab_version=2\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"blocksize=131072\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"boot_size=67108864 \" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"recovery_as_boot=\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"recovery_size=67108864 \" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"recovery_mount_options=ext4=max_batch_time=0,commit=1,data=ordered,barrier=1,errors=panic,nodelalloc\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"tool_extensions=device/asus/Z01M/../common\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"default_system_dev_certificate=build/target/product/security/testkey\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"extra_recovery_keys=vendor/cm/build/target/product/security/lineage\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo 'mkbootimg_args=' >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo 'mkbootimg_version_args=--os_version 7.1.2 --os_patch_level 2020-08-05' >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"use_set_metadata=1\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"multistage_support=1\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"update_rename_support=1\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"blockimgdiff_versions=1,2,3,4\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"fs_type=ext4\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"system_size=4831838208 \" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"userdata_size=56614698496 \" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"cache_fs_type=ext4\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"cache_size=134217728 \" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"extfs_sparse_flag=-s\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"squashfs_sparse_flag=-s\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (echo \"selinux_fc=/home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && (PATH=/home/frost/Android/Lineage/out/host/linux-x86/bin/:\$PATH MKBOOTIMG=/home/frost/Android/Lineage/out/host/linux-x86/bin/mkbootimg ./build/tools/releasetools/make_recovery_patch /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost ) && (vendor/cm/build/tools/getb64key.py build/target/product/security/testkey.x509.pem > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/releasekey.txt ) && (echo \"ota_override_device=Z01M,ASUS_Z01M,Z01MD,ASUS_Z01MD,ZD552KL\" >> /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/misc_info.txt ) && ((cd /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost && zip -qryX ../aosp_Z01M-target_files-eng.frost.zip ./META && zip -qryXu ../aosp_Z01M-target_files-eng.frost.zip .) ) && (zipinfo -1 /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost.zip | awk 'BEGIN { FS=\"SYSTEM/\" } /^SYSTEM\\// {print \"system/\" \$2}' | /home/frost/Android/Lineage/out/host/linux-x86/bin/fs_config -C -D /home/frost/Android/Lineage/out/target/product/Z01M/system -S /home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/filesystem_config.txt ) && (zipinfo -1 /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost.zip | awk 'BEGIN { FS=\"VENDOR/\" } /^VENDOR\\// {print \"vendor/\" \$2}' | /home/frost/Android/Lineage/out/host/linux-x86/bin/fs_config -C -D /home/frost/Android/Lineage/out/target/product/Z01M/system -S /home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/vendor_filesystem_config.txt ) && (zipinfo -1 /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost.zip | awk 'BEGIN { FS=\"BOOT/RAMDISK/\" } /^BOOT\\/RAMDISK\\// {print \$2}' | /home/frost/Android/Lineage/out/host/linux-x86/bin/fs_config -C -D /home/frost/Android/Lineage/out/target/product/Z01M/system -S /home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/boot_filesystem_config.txt ) && (zipinfo -1 /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost.zip | awk 'BEGIN { FS=\"RECOVERY/RAMDISK/\" } /^RECOVERY\\/RAMDISK\\// {print \$2}' | /home/frost/Android/Lineage/out/host/linux-x86/bin/fs_config -C -D /home/frost/Android/Lineage/out/target/product/Z01M/system -S /home/frost/Android/Lineage/out/target/product/Z01M/root/file_contexts.bin > /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost/META/recovery_filesystem_config.txt ) && ((cd /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost && zip -qX ../aosp_Z01M-target_files-eng.frost.zip META/*filesystem_config.txt) ) && (PATH=/home/frost/Android/Lineage/out/host/linux-x86/bin/:\$PATH MKBOOTIMG=/home/frost/Android/Lineage/out/host/linux-x86/bin/mkbootimg ./build/tools/releasetools/add_img_to_target_files -a -v -p /home/frost/Android/Lineage/out/host/linux-x86 /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost.zip )"
using prebuilt recovery.img from BOOTABLE_IMAGES...
using prebuilt boot.img from BOOTABLE_IMAGES...
running: unzip -o -q /home/frost/Android/Lineage/out/target/product/Z01M/obj/PACKAGING/target_files_intermediates/aosp_Z01M-target_files-eng.frost.zip -d /tmp/targetfiles-ajXmds
++++ boot ++++
using prebuilt boot.img from BOOTABLE_IMAGES...
++++ recovery ++++
using prebuilt recovery.img from BOOTABLE_IMAGES...
++++ recovery (two-step image) ++++
building image from target_files RECOVERY...
running: mkbootfs -f /tmp/targetfiles-ajXmds/META/recovery_filesystem_config.txt /tmp/targetfiles-ajXmds/RECOVERY/RAMDISK
running: minigzip
running: /home/frost/Android/Lineage/out/host/linux-x86/bin/mkbootimg --kernel /tmp/targetfiles-ajXmds/RECOVERY/kernel --cmdline cmd_line='console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci earlycon=msm_hsl_uart,0x78af000 androidboot.selinux=permissive buildvariant=eng --base 0x80000000 --tags_offset 0x00000100 --ramdisk_offset 0x01000000 --pagesize 2048 --os_version 7.1.2 --os_patch_level 2020-08-05 --ramdisk /tmp/tmpzITR1e --output /tmp/tmpeIubBx
++++ system ++++
creating system.img...
BuildImage: in_dir = /tmp/targetfiles-ajXmds/system, out_file = /tmp/system-jMQMgY.img
fs type is not ext4
Running: mkuserimg.sh -s /tmp/targetfiles-ajXmds/system /tmp/system-jMQMgY.img ext4 system 4831838208 -T 1230778800 -C /tmp/targetfiles-ajXmds/META/filesystem_config.txt -B /tmp/system-blocklist-rMJHYe.map -L system /tmp/targetfiles-ajXmds/META/file_contexts.bin
make_ext4fs -s -T 1230778800 -S /tmp/targetfiles-ajXmds/META/file_contexts.bin -C /tmp/targetfiles-ajXmds/META/filesystem_config.txt -B /tmp/system-blocklist-rMJHYe.map -L system -l 4831838208 -a system /tmp/system-jMQMgY.img /tmp/targetfiles-ajXmds/system
loaded 5331 fs_config entries
Creating filesystem with parameters:
Size: 4831838208
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 18432
Label: system
Blocks: 1179648
Block groups: 36
Reserved block group size: 287
Created filesystem with 5341/294912 inodes and 362846/1179648 blocks
Running ['mkuserimg.sh', '-s', '/tmp/targetfiles-ajXmds/system', '/tmp/system-jMQMgY.img', 'ext4', 'system', '4831838208', '-T', '1230778800', '-C', '/tmp/targetfiles-ajXmds/META/filesystem_config.txt', '-B', '/tmp/system-blocklist-rMJHYe.map', '-L', 'system', '/tmp/targetfiles-ajXmds/META/file_contexts.bin'] command, exit code = 0
++++ userdata ++++
creating userdata.img...
BuildImage: in_dir = /tmp/tmpsrG8BS/data, out_file = /tmp/tmpoSlGmd
fs type is not ext4
Running: mkuserimg.sh -s /tmp/tmpsrG8BS/data /tmp/tmpoSlGmd ext4 data 56614698496 -T 1230778800 -L data /tmp/targetfiles-ajXmds/META/file_contexts.bin
make_ext4fs -s -T 1230778800 -S /tmp/targetfiles-ajXmds/META/file_contexts.bin -L data -l 56614698496 -a data /tmp/tmpoSlGmd /tmp/tmpsrG8BS/data
Creating filesystem with parameters:
Size: 56614694912
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 32768
Label: data
Blocks: 13821947
Block groups: 422
Reserved block group size: 1024
Created filesystem with 11/3457024 inodes and 263056/13821947 blocks
Running ['mkuserimg.sh', '-s', '/tmp/tmpsrG8BS/data', '/tmp/tmpoSlGmd', 'ext4', 'data', '56614698496', '-T', '1230778800', '-L', 'data', '/tmp/targetfiles-ajXmds/META/file_contexts.bin'] command, exit code = 0
userdata size (14) is 0.00% of limit (56614698496)
++++ extrauserdata ++++
++++ cache ++++
creating cache.img...
Traceback (most recent call last):
File "./build/tools/releasetools/add_img_to_target_files", line 554, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/add_img_to_target_files", line 548, in main
AddImagesToTargetFiles(args[0])
File "./build/tools/releasetools/add_img_to_target_files", line 476, in AddImagesToTargetFiles
AddCache(output_zip)
File "./build/tools/releasetools/add_img_to_target_files", line 375, in AddCache
image_props["fs_type"] = fstab["/cache"].fs_type
KeyError: '/cache'
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/home/frost/Android/Lineage'
#### make failed to build some targets (17:07 (mm:ss)) ####
Device Tree: https://github.com/2003Frost/android_device_asus_Z01M/tree/cm-14.1
Vendor: https://github.com/2003Frost/proprietary_vendor_asus_Z01M
Kernel: https://github.com/2003Frost/android_kernel_asus_Z01M
I've been stuck on this for a while now, so any help is appreciated.
0

Categories

Resources