hi there, i'm not an expert on compiling kernel, but when i compile my own kernel it says
cp: cannot stat '/workspace/gitpod-playground/android_kernel_xiaomi_vayu/out/arch/arm64/boot/Image.gz': No such file or directory
cp: cannot stat '/workspace/gitpod-playground/android_kernel_xiaomi_vayu/out/arch/arm64/boot/dtbo.img': No such file or directory
how do i solve it? i was searching all the time but i couldn't find any answer
Related
I would need help with this http://forum.xda-developers.com/showthread.php?t=1866675
When i am trying to run dualboot-rom-convert script there comes this error
[email protected]:~$ /home/juho/Lataukset/dualboot-rom-convert/convert.sh cm.zip
Dualboot Rom Converter
Converts GT-P31xx Roms
to run from external
SD card and dualboot.
mkdir: cannot create directory `tmp/': File exists
cp: cannot stat `cm.zip': No such file or directory
Extracting boot image...
unzip: cannot find or open tmp/cm.zip-dualboot.zip, tmp/cm.zip-dualboot.zip.zip or tmp/cm.zip-dualboot.zip.ZIP.
mkdir: cannot create directory `tmp/unpack': File exists
Unpacking boot image...
/home/juho/Lataukset/dualboot-rom-convert/convert.sh: line 13: ./unpackbootimg: No such file or directory
mkdir: cannot create directory `tmp/unpack/ramdisk': File exists
cpio: premature end of archive
Modifiying boot image...
/home/juho/Lataukset/dualboot-rom-convert/convert.sh: line 18: init.espresso.rc: No such file or directory
mv: cannot stat `init.espresso.rc.t': No such file or directory
/home/juho/Lataukset/dualboot-rom-convert/convert.sh: line 19: init.espresso.rc: No such file or directory
mv: cannot stat `init.espresso.rc.t': No such file or directory
/home/juho/Lataukset/dualboot-rom-convert/convert.sh: line 20: init.espresso.rc: No such file or directory
mv: cannot stat `init.espresso.rc.t': No such file or directory
/home/juho/Lataukset/dualboot-rom-convert/convert.sh: line 21: init.espresso.rc: No such file or directory
mv: cannot stat `init.espresso.rc.t': No such file or directory
Repacking boot image...
/home/juho/Lataukset/dualboot-rom-convert/convert.sh: line 24: ./mkbootfs: No such file or directory
cat: tmp/unpack/boot.img-base: No such file or directory
/home/juho/Lataukset/dualboot-rom-convert/convert.sh: line 25: ./mkbootimg: No such file or directory
cp: cannot stat `tmp/boot.img': No such file or directory
cp: cannot stat `patches/system/': No such file or directory
zip warning: name not matched: tmp/boot.img
zip error: Nothing to do! (tmp/cm.zip-dualboot.zip)
zip warning: name not matched: system/
zip error: Nothing to do! (try: zip -r cm.zip-dualboot.zip . -i system/)
Modifiying updater-script
unzip: cannot find or open tmp/cm.zip-dualboot.zip, tmp/cm.zip-dualboot.zip.zip or tmp/cm.zip-dualboot.zip.ZIP.
/home/juho/Lataukset/dualboot-rom-convert/convert.sh: line 35: tmp/updater-script: No such file or directory
mv: cannot stat `tmp/updater-script.t': No such file or directory
/home/juho/Lataukset/dualboot-rom-convert/convert.sh: line 36: tmp/updater-script: No such file or directory
mv: cannot stat `tmp/updater-script.t': No such file or directory
/home/juho/Lataukset/dualboot-rom-convert/convert.sh: line 37: tmp/updater-script: No such file or directory
mv: cannot stat `tmp/updater-script.t': No such file or directory
Repacking updater-script...
mkdir: cannot create directory `tmp/META-INF': File exists
mkdir: cannot create directory `tmp/META-INF/com': File exists
mkdir: cannot create directory `tmp/META-INF/com/google': File exists
mkdir: cannot create directory `tmp/META-INF/com/google/android': File exists
mv: cannot stat `tmp/updater-script': No such file or directory
zip warning: name not matched: META-INF/com/google/android/updater-script
zip error: Nothing to do! (cm.zip-dualboot.zip)
cp: cannot stat `tmp/cm.zip-dualboot.zip': No such file or directory
Complete!
I have given executable permissions to: unpackbootimg,, mkbootfs, and whatever the last one is (I forgot the last file name).
Did you try running the script ad root?
Posted from my Fascinate using XDA Premium
MultipleMonomials said:
Did you try running the script ad root?
Posted from my Fascinate using XDA Premium
Click to expand...
Click to collapse
Yes, I tried
It looks like the script can't find the file. Try putting a "./' before "cm.zip".
Posted from my Galaxy Tab 2 with CM10.1
Please make sure –
Your device should already be rooted.
You should already have Android ADB and the Android-SDK installed in your computer and should have basic ADB knowledge.
Busybox should already be installed in your device.
Install java+update
Required Downloads –
xUltimate
Tutorial –
1. Connect your phone to computer.(Make sure you have select USB debugging in Settings>Applications>Development)
2. Extract xUltimate v2.3.3.zip and Launch Main.exe
3. If everything goes well xUltimate should recognize the phone and make a connection.You now should see a list of options.
4. Select option (1) pull /system/app. Wait until it complete.
5. Select option (2)pull /system/framework. Wait until it complete.
6. Then select option (3) Deodex /system/app. Wait until it complete.
[If encounter any error. Find out which .odex file is it. Then remove .odex file from folder origi_app in xUltimate folder]
7. Then select option (4)Deodex /system/framework. Wait until it complete.
8. Now Exit from xUltimate.
9. Put the phone in USB mass storage.
10. Go to xUltimate folder and copy “done_frame”, and “done_app”, and move them to the root of the sdcard.
11. Now get out from USB storage mode.
12. Open Command prompt.
( Go to / cd folder where android sdk installed. Then go to platform-tools folder in it. Right click on free space in folder while pressing shift key.Select open command prompt here.
Now enter commands.)
13. Enter following commands.(if you are using adb shell in su for the first time, keep phone screen on. After entering “su” code, super user request prompt in phone. Press allow).
14. You now you have deodexed rom.
Hope i helped you..!!
https://www.dropbox.com/s/ejxf3qdt3b0fkmb/xUltimate-v2.4.2.rar
Use this version of xultimate in above link instead of using v2.3.3..
Lovenish Singh Panwar said:
Please make sure –
Your device should already be rooted.
You should already have Android ADB and the Android-SDK installed in your computer and should have basic ADB knowledge.
Busybox should already be installed in your device.
Install java+update
Required Downloads –
xUltimate
Tutorial –
1. Connect your phone to computer.(Make sure you have select USB debugging in Settings>Applications>Development)
2. Extract xUltimate v2.3.3.zip and Launch Main.exe
3. If everything goes well xUltimate should recognize the phone and make a connection.You now should see a list of options.
4. Select option (1) pull /system/app. Wait until it complete.
5. Select option (2)pull /system/framework. Wait until it complete.
6. Then select option (3) Deodex /system/app. Wait until it complete.
[If encounter any error. Find out which .odex file is it. Then remove .odex file from folder origi_app in xUltimate folder]
7. Then select option (4)Deodex /system/framework. Wait until it complete.
8. Now Exit from xUltimate.
9. Put the phone in USB mass storage.
10. Go to xUltimate folder and copy “done_frame”, and “done_app”, and move them to the root of the sdcard.
11. Now get out from USB storage mode.
12. Open Command prompt.
( Go to / cd folder where android sdk installed. Then go to platform-tools folder in it. Right click on free space in folder while pressing shift key.Select open command prompt here.
Now enter commands.)
13. Enter following commands.(if you are using adb shell in su for the first time, keep phone screen on. After entering “su” code, super user request prompt in phone. Press allow).
14. You now you have deodexed rom.
Hope i helped you..!!
Click to expand...
Click to collapse
What are the commands needed in step 13? I think you forgot to mention them!
adb shell
su
stop
mount -o rw,remount /system/ /system/
cp /sdcard/done_app/* /system/app/
rm /system/app/*.odex
cp /sdcard/done_frame/* /system/framework/
rm /system/framework/*.odex
mount -o ro,remount /system/ /system/
reboot
Above are the commands of step 13.. These slipped from my mind to be quoted..
Lovenish Singh Panwar said:
Above are the commands of step 13.. These slipped from my mind to be quoted..
Click to expand...
Click to collapse
This is my output:
[email protected]:/ $ su
[email protected]:/ # stop
[email protected]:/ # mount -o rw,remount /system/ /system/
[email protected]:/ # cp /sdcard/done_app/* /system/app/
cp: /sdcard/done_app/AASAservice is a directory (not copied).
cp: /sdcard/done_app/ANTPlusPlugins is a directory (not copied).
cp: /sdcard/done_app/ANTPlusTest is a directory (not copied).
cp: /sdcard/done_app/ANTRadioService is a directory (not copied).
cp: /sdcard/done_app/AccessControl is a directory (not copied).
cp: /sdcard/done_app/AccuweatherTablet2015_XGA is a directory (not copied).
cp: /sdcard/done_app/AllShareCastPlayer is a directory (not copied).
cp: /sdcard/done_app/AllshareFileShare is a directory (not copied).
cp: /sdcard/done_app/AllshareFileShareClient is a directory (not copied).
cp: /sdcard/done_app/AllshareFileShareServer is a directory (not copied).
cp: /sdcard/done_app/AllshareMediaShare is a directory (not copied).
cp: /sdcard/done_app/AntHalService is a directory (not copied).
cp: /sdcard/done_app/AssistantMenu2_TabS2 is a directory (not copied).
cp: /sdcard/done_app/BBCAgent is a directory (not copied).
cp: /sdcard/done_app/BCService is a directory (not copied).
cp: /sdcard/done_app/BadgeProvider is a directory (not copied).
cp: /sdcard/done_app/BasicDreams is a directory (not copied).
cp: /sdcard/done_app/BeaconManager_20 is a directory (not copied).
cp: /sdcard/done_app/Bluetooth is a directory (not copied).
cp: /sdcard/done_app/BluetoothTest is a directory (not copied).
cp: /sdcard/done_app/Books is a directory (not copied).
cp: /sdcard/done_app/Bridge is a directory (not copied).
cp: /sdcard/done_app/BrowserProviderProxy is a directory (not copied).
cp: /sdcard/done_app/CaptivePortalLogin is a directory (not copied).
cp: /sdcard/done_app/CertInstaller is a directory (not copied).
cp: /sdcard/done_app/ChocoEUKor is a directory (not copied).
cp: /sdcard/done_app/Chrome is a directory (not copied).
cp: /sdcard/done_app/ChromeCustomizations is a directory (not copied).
cp: /sdcard/done_app/ClipboardSaveService is a directory (not copied).
cp: /sdcard/done_app/ClipboardUIService is a directory (not copied).
cp: /sdcard/done_app/ClockPackage_L is a directory (not copied).
cp: /sdcard/done_app/ColorBlind_Tablet_L is a directory (not copied).
cp: /sdcard/done_app/ConfigUpdater is a directory (not copied).
cp: /sdcard/done_app/CoolEUKor is a directory (not copied).
cp: /sdcard/done_app/DRParser is a directory (not copied).
cp: /sdcard/done_app/DigitalClock_L is a directory (not copied).
cp: /sdcard/done_app/DocumentsUI is a directory (not copied).
cp: /sdcard/done_app/Drive is a directory (not copied).
cp: /sdcard/done_app/DualClockDigital_L is a directory (not copied).
cp: /sdcard/done_app/ELMAgent is a directory (not copied).
cp: /sdcard/done_app/EasyOneHand2 is a directory (not copied).
cp: /sdcard/done_app/EdmSimPinService is a directory (not copied).
cp: /sdcard/done_app/EdmVpnServices is a directory (not copied).
cp: /sdcard/done_app/EmergencyLauncher is a directory (not copied).
cp: /sdcard/done_app/EmergencyModeService is a directory (not copied).
cp: /sdcard/done_app/EmergencyProvider is a directory (not copied).
cp: /sdcard/done_app/FMRecord is a directory (not copied).
cp: /sdcard/done_app/FactoryCamera_FB is a directory (not copied).
cp: /sdcard/done_app/FlipboardBriefing is a directory (not copied).
cp: /sdcard/done_app/GalaxyAppsWidget_Tablet is a directory (not copied).
cp: /sdcard/done_app/Gmail2 is a directory (not copied).
cp: /sdcard/done_app/GoogleCalendarSyncAdapter is a directory (not copied).
cp: /sdcard/done_app/GoogleContactsSyncAdapter is a directory (not copied).
cp: /sdcard/done_app/GoogleTTS is a directory (not copied).
cp: /sdcard/done_app/Hangouts is a directory (not copied).
cp: /sdcard/done_app/InterfacePermissions is a directory (not copied).
cp: /sdcard/done_app/KeyChain is a directory (not copied).
cp: /sdcard/done_app/KeyguardWallpaperUpdator is a directory (not copied).
cp: /sdcard/done_app/KnoxAttestationAgent is a directory (not copied).
cp: /sdcard/done_app/KnoxSetupWizardClient is a directory (not copied).
cp: /sdcard/done_app/MSSkype_stub is a directory (not copied).
cp: /sdcard/done_app/Maps is a directory (not copied).
cp: /sdcard/done_app/MobilePrintSvc_Samsung is a directory (not copied).
cp: /sdcard/done_app/MultiWindowTrayService2 is a directory (not copied).
cp: /sdcard/done_app/Music2 is a directory (not copied).
cp: /sdcard/done_app/Newsstand is a directory (not copied).
cp: /sdcard/done_app/OneDrive_Samsung is a directory (not copied).
cp: /sdcard/done_app/OneNote is a directory (not copied).
cp: /sdcard/done_app/PacProcessor is a directory (not copied).
cp: /sdcard/done_app/PackageInstaller is a directory (not copied).
cp: /sdcard/done_app/PageBuddyNotiSvc2 is a directory (not copied).
cp: /sdcard/done_app/PartnerBookmarksProvider is a directory (not copied).
cp: /sdcard/done_app/PhotoTable is a directory (not copied).
cp: /sdcard/done_app/PlayGames is a directory (not copied).
cp: /sdcard/done_app/PlusOne is a directory (not copied).
cp: /sdcard/done_app/PopupuiReceiver is a directory (not copied).
cp: /sdcard/done_app/Preconfig is a directory (not copied).
cp: /sdcard/done_app/PreloadInstaller is a directory (not copied).
cp: /sdcard/done_app/QComQMIPermissions is a directory (not copied).
cp: /sdcard/done_app/QtiBackupAgent is a directory (not copied).
cp: /sdcard/done_app/QuickConnect_20 is a directory (not copied).
cp: /sdcard/done_app/RCPComponents is a directory (not copied).
cp: /sdcard/done_app/ResourceManager is a directory (not copied).
cp: /sdcard/done_app/RootPA is a directory (not copied).
cp: /sdcard/done_app/RoseEUKor is a directory (not copied).
cp: /sdcard/done_app/SBrowser_3.0.38 is a directory (not copied).
cp: /sdcard/done_app/SCONE_Android_ProxyService_Lib is a directory (not copied).
cp: /sdcard/done_app/SLocation is a directory (not copied).
cp: /sdcard/done_app/SPenSdk3 is a directory (not copied).
cp: /sdcard/done_app/SPlannerWidget_Tablet is a directory (not copied).
cp: /sdcard/done_app/SPlanner_Tablet is a directory (not copied).
cp: /sdcard/done_app/SPrintSpooler is a directory (not copied).
cp: /sdcard/done_app/STalkback is a directory (not copied).
cp: /sdcard/done_app/SafetyInformation is a directory (not copied).
cp: /sdcard/done_app/SamsungCamera4 is a directory (not copied).
cp: /sdcard/done_app/SamsungIMEv2 is a directory (not copied).
cp: /sdcard/done_app/SamsungSans is a directory (not copied).
cp: /sdcard/done_app/SamsungTTS is a directory (not copied).
cp: /sdcard/done_app/SecCalculator2_L is a directory (not copied).
cp: /sdcard/done_app/SecDict2Noble is a directory (not copied).
cp: /sdcard/done_app/SecFactoryPhoneTest is a directory (not copied).
cp: /sdcard/done_app/SecHTMLViewer is a directory (not copied).
cp: /sdcard/done_app/SecMemo2 is a directory (not copied).
cp: /sdcard/done_app/SecSetupWizard2015 is a directory (not copied).
cp: /sdcard/done_app/SecurityLogAgent is a directory (not copied).
cp: /sdcard/done_app/SecurityProviderSEC is a directory (not copied).
cp: /sdcard/done_app/SharingAccessibilitySettings_L is a directory (not copied).
cp: /sdcard/done_app/ShootingModeProvider is a directory (not copied).
cp: /sdcard/done_app/Sidesync is a directory (not copied).
cp: /sdcard/done_app/Sidesync_Source is a directory (not copied).
cp: /sdcard/done_app/SilentLog is a directory (not copied).
cp: /sdcard/done_app/SmartcardManager is a directory (not copied).
cp: /sdcard/done_app/SnsImageCache is a directory (not copied).
cp: /sdcard/done_app/SplitSoundService is a directory (not copied).
cp: /sdcard/done_app/Stk is a directory (not copied).
cp: /sdcard/done_app/SwitchKnoxI is a directory (not copied).
cp: /sdcard/done_app/SwitchKnoxII is a directory (not copied).
cp: /sdcard/done_app/SysScope is a directory (not copied).
cp: /sdcard/done_app/TasksProvider is a directory (not copied).
cp: /sdcard/done_app/TcpdumpService is a directory (not copied).
cp: /sdcard/done_app/TimeService is a directory (not copied).
cp: /sdcard/done_app/USBSettings is a directory (not copied).
cp: /sdcard/done_app/UniversalMDMClient is a directory (not copied).
cp: /sdcard/done_app/UniversalSwitch is a directory (not copied).
cp: /sdcard/done_app/UserDictionaryProvider is a directory (not copied).
cp: /sdcard/done_app/Videos is a directory (not copied).
cp: /sdcard/done_app/WeatherDaemon2015 is a directory (not copied).
cp: /sdcard/done_app/WebManual is a directory (not copied).
cp: /sdcard/done_app/WebViewGoogle is a directory (not copied).
cp: /sdcard/done_app/WfdBroker is a directory (not copied).
cp: /sdcard/done_app/WlanTest is a directory (not copied).
cp: /sdcard/done_app/Wluc is a directory (not copied).
cp: /sdcard/done_app/YouTube is a directory (not copied).
cp: /sdcard/done_app/com.qualcomm.qti.services.secureui is a directory (not copi
ed).
cp: /sdcard/done_app/mcRegistry is a directory (not copied).
cp: /sdcard/done_app/minimode-res is a directory (not copied).
cp: /sdcard/done_app/ringtoneBR is a directory (not copied).
cp: /sdcard/done_app/secvisualeffect-res is a directory (not copied).
cp: /sdcard/done_app/withTV is a directory (not copied).
1|[email protected]:/ #
Please help.
None of the current deodexing tools will work on m2 5.1 lollipop same for xposed. Sony messed up
D2303 5.1 customised NCB LB t2u nut dual recovery rooted de-bloated bravia engine 2+x-reality
@Lovenish Singh Panwar
Which stock rom are you deodexeding?
And what about priv-app? KK and LP have them.
As i found out our m2 is missing odex.app.sqsh and odex.priv-app.sqsh so we can't deodexed it
Sent from my D2303
Dzepar said:
@Lovenish Singh Panwar
Which stock rom are you deodexeding?
And what about priv-app? KK and LP have them.
As i found out our m2 is missing odex.app.sqsh and odex.priv-app.sqsh so we can't deodexed it
Sent from my D2303
Click to expand...
Click to collapse
*.sqsh files are only found in old Z series and we are not able to deodex because of some corrupted files see
https://github.com/testwhat/SmaliEx/issues/8
anyone have try this?
NieeLz said:
anyone have try this?
Click to expand...
Click to collapse
Doesn't work, none of the deodexing tools will thanks to Sony screwing up t2u has the same problem. Xposed won't work either can't see it being fixed Anytime soon either
D2303 5.1 customised NCB LB t2u nut dual recovery rooted de-bloated bravia engine 2+x-reality
[email protected] said:
Doesn't work, none of the deodexing tools will thanks to Sony screwing up t2u has the same problem. Xposed won't work either can't see it being fixed Anytime soon either
D2303 5.1 customised NCB LB t2u nut dual recovery rooted de-bloated bravia engine 2+x-reality
Click to expand...
Click to collapse
ok, thanks i almost try this
Hi err i have a Problem after setting up a working folder in the end it shows this error
Compiling simg2img ...
simg2img.c:30:22: fatal error: sys/mman.h: No such file or directory
compilation terminated.
Error: simg2img.exe not successfully compiled!
Can anyone help me?
How to create Device tree for Android Rom building
I assume you already downloaded source code
before we start please do following
1. Install unpackbootimg
Go to https://github.com/jsharma44/bootimg-tools and download as a zip or use git clone command.
extract files
cd directory
make
now you will find unpackbootimg and mkbootimg in this directory
2. copy unpackbootimg and mkbootimg to /usr/bin
sudo cp unpackbootimg /usr/bin
sudo cp mkbootimg /usr/bin
Note this is necessary if you are getting error
” “unpackbootimg not found. Is your android build environment set up and have the host tools been built?
3. Extracting boot.img from your device
What we need
1. A rooted phone
2. Enable Usb Debugging in Developer Mode
3. ADB command knowldge
connect your phone via usb cable ensure that usb debugging is enabled
open terminal and type adb devices
if it is showing your device’s serial no than we are ready to go
C. type
adb shell
su
ls -l /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name
please note this command may vary by device to device. What we are doing here we want to know partition scheme of your device.
note down block name of /boot partition
example it will be like boot -> /dev/block/mmcblk0p7
d. type this
dd if=/dev/block/mmcblk0p7 of=/sdcard/boot.img
now boot.img succesfully transfered to your SD card Copy it to your Desktop
now path should be /home/user/Desktop/boot.img or similar but remeber path name alternatively you can type pwd in terminal to know this
creating device/Vendor-Name/Device-codename
cd to your working directory
Syntex: ./build/tools/device/mkvendor.sh Vendor-Name Device-CodeName ~/Path to your/boot.img
Example:
./build/tools/device/mkvendor.sh GIONEE GIONEE_WBL7511 ~/Desktop/boot.img
Now it will create following file in /device/Vender-Name/Device_CodeName
AndroidBoard.mk
cm.mk
recovery.fstab
AndroidProducts.mk
device_GIONEE_WBL7511.mk
system.prop
BoardConfig.mk
kernel
Note1: Please creater vendorsetup.mk file in this directory manualy. To use source build/envsetup.sh
Note2: Please double check BoardConfig.mk file and ensure every partition size is correct in this file. Also check recovery.fstab showing correct mount point
Note3: Here kernel is prebuilt kernel. If you want to compile kernel as well as download your kernel source in /kernel/Vender-Name/Device_CodeName dirtectory. You will find kernel related config in BoardConfig.mk
Please note it will not create vendorsetup.sh file and following Directory
1./vendor/Vender-Name/Device_CodeName
2. /kernel/Vender-Name/Device_CodeName
Wait for next post for more info
Thank You
Thank you very much for the tutorial I will try to do it
Enviado desde mi A7010a48 mediante Tapatalk
Also here http://azodik.com/how-to-create-device-tree-for-android-rom-building/
Are you ready with the post about creating the vendor tree?
thanks mate, but there's more than this, for example different flags for build for mtk device and different flags for qualcomm devices
Thank you for this great tut, but I have a noob error that I couldn't found "mkbootimg" and "unpackbootimg" in "/bootimg-tools-master" folder
But in "/bootimg-tools-master/mkbootimg" I found "bootimg.h, mkbootimg, mkbootimg.c, mkbootimg.o, unmkbootimg, unmkbootimg.c, unmkbootimg.o"
Also, I have read your note:
Note this is necessary if you are getting error
” “unpackbootimg not found. Is your android build environment set up and have the host tools been built?
but I couldn't figure out what to do to check that
Additional info. : I am doing that to build a LineageOS Rom
Tree and API dependance
Amazing tutorial yet a small query - are the device (and vendor) trees android version dependant?
Could I use the boot.img of say Android 6.0 for building a 7.0 Nougat based ROM?
i am getting errors !
[/QUOTE][/QUOTE]
jai44 said:
How to create Device tree for Android Rom building
I assume you already downloaded source code
before we start please do following
1. Install unpackbootimg
Go to https://github.com/jsharma44/bootimg-tools and download as a zip or use git clone command.
extract files
cd directory
make
now you will find unpackbootimg and mkbootimg in this directory
2. copy unpackbootimg and mkbootimg to /usr/bin
sudo cp unpackbootimg /usr/bin
sudo cp mkbootimg /usr/bin
Note this is necessary if you are getting error
” “unpackbootimg not found. Is your android build environment set up and have the host tools been built?
3. Extracting boot.img from your device
What we need
1. A rooted phone
2. Enable Usb Debugging in Developer Mode
3. ADB command knowldge
connect your phone via usb cable ensure that usb debugging is enabled
open terminal and type adb devices
if it is showing your device’s serial no than we are ready to go
C. type
adb shell
su
ls -l /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name
please note this command may vary by device to device. What we are doing here we want to know partition scheme of your device.
note down block name of /boot partition
example it will be like boot -> /dev/block/mmcblk0p7
d. type this
dd if=/dev/block/mmcblk0p7 of=/sdcard/boot.img
now boot.img succesfully transfered to your SD card Copy it to your Desktop
now path should be /home/user/Desktop/boot.img or similar but remeber path name alternatively you can type pwd in terminal to know this
creating device/Vendor-Name/Device-codename
cd to your working directory
Syntex: ./build/tools/device/mkvendor.sh Vendor-Name Device-CodeName ~/Path to your/boot.img
Example:
./build/tools/device/mkvendor.sh GIONEE GIONEE_WBL7511 ~/Desktop/boot.img
Now it will create following file in /device/Vender-Name/Device_CodeName
AndroidBoard.mk
cm.mk
recovery.fstab
AndroidProducts.mk
device_GIONEE_WBL7511.mk
system.prop
BoardConfig.mk
kernel
Note1: Please creater vendorsetup.mk file in this directory manualy. To use source build/envsetup.sh
Note2: Please double check BoardConfig.mk file and ensure every partition size is correct in this file. Also check recovery.fstab showing correct mount point
Note3: Here kernel is prebuilt kernel. If you want to compile kernel as well as download your kernel source in /kernel/Vender-Name/Device_CodeName dirtectory. You will find kernel related config in BoardConfig.mk
Please note it will not create vendorsetup.sh file and following Directory
1./vendor/Vender-Name/Device_CodeName
2. /kernel/Vender-Name/Device_CodeName
Wait for next post for more info
Thank You
Click to expand...
Click to collapse
Adityas-Mac-Pro:android aditya$ . build/tools/device/mkvendor.sh htc m8et /Users/aditya/Desktop/boot.img
Arguments: htc m8et /Users/aditya/Desktop/boot.img
dirname: illegal option -- b
usage: dirname path
dirname: illegal option -- b
usage: dirname path
-bash: pushd: no other directory
-bash: popd: directory stack empty
Output will be in //device/htc/m8et
mkdir: //device/htc/m8et: Permission denied
mkdir: /tmp/aditya/bootimg: Permission denied
cp: /tmp/aditya/bootimg: No such file or directory
-bash: pushd: /tmp/aditya/bootimg: No such file or directory
error: could not load image 'boot.img'
mkdir: ramdisk: File exists
gunzip: can't stat: ../boot.img-ramdisk.gz (../boot.img-ramdisk.gz.gz): No such file or directory
0 blocks
cat: /tmp/aditya/bootimg/boot.img-base: No such file or directory
cat: /tmp/aditya/bootimg/boot.img-cmdline: No such file or directory
cat: /tmp/aditya/bootimg/boot.img-pagesize: No such file or directory
-bash: /tmp/aditya/bootimg/sedcommand: No such file or directory
cp: /tmp/aditya/bootimg/boot.img-zImage: No such file or directory
-bash: popd: directory stack empty
find: /Volumes/android/.DocumentRevisions-V100: Permission denied
find: /Volumes/android/.TemporaryItems: Permission denied
find: /Volumes/android/.Trashes: Permission denied
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/AndroidManifest: No such file or directory
-bash: //device/htc/m8et/AndroidManifest.tests: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/java_file: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/java_tests_file: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/layout: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/strings: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/FrameworkDatabase: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/build_rule: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/target: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/tools_def: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/click_events: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/stylus.prop: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/temp.arg: No such file or directory
cat: /Volumes/android/external/clang/test/CXX/temp/temp.arg/temp.arg.template: Is a directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/index.html: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/testResults.php: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/customTest.xml: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/testing.properties: No such file or directory
-bash: //device/htc/m8et/plugin.xml: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/Common.pl: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/build-local.properties: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
cat: /Volumes/android/external/icu/icu4j/eclipse-build/features.template: Is a directory
-bash: //device/htc/m8et/features: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/plugins: No such file or directory
cat: /Volumes/android/external/icu/icu4j/eclipse-build/plugins.template: Is a directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/Version.java: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/string.view: No such file or directory
cat: /Volumes/android/external/libcxx/test/std/experimental/string.view/string.view.template: Is a directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/string.view: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
cat: /Volumes/android/external/libcxx/test/std/strings/string.view/string.view.template: Is a directory
-bash: //device/htc/m8et/NativeLibraries: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/ar_event_cpp: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/ar_event_h: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/ar_eventhandler_h: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/ar_eventhandlerfile_h: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/knobs: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/README: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/compile_commands.json: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/DriverRS.java: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/DriverView.java: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/ACTIVITY.java: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/DriverRS.java: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/ACTIVITY.java: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/ACTIVITY.java: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/jmxremote.password: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/snmp.acl: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/jmxremote.password: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/snmp.acl: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/string.view: No such file or directory
cat: /Volumes/android/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/experimental/string.view/string.view.template: Is a directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/revision: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/AndroidManifest: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/activity: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/java_file: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/launcher_intent_filter: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/layout: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/preference_intent_filter: No such file or directory
-bash: //device/htc/m8et/string: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/strings: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/test_instrumentation: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/test_uses-library: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/uses-sdk: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/prefs: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/build: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/build_gradle: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/uibuild: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
-bash: //device/htc/m8et/asan.options.off: No such file or directory
sed: /tmp/aditya/bootimg/sedcommand: No such file or directory
mv: rename //device/htc/m8et/device.mk to //device/htc/m8et/device_m8et.mk: No such file or directory
Creating initial git repository.
-bash: pushd: //device/htc/m8et: No such file or directory
Reinitialized existing Git repository in /Volumes/android/.git/
Click to expand...
Click to collapse
I tried to search but cannot get anything I'm using mac os x 10.12.6
thumbs up
Scripts to extract device vendor files and generate AOSP makefiles.
https://github.com/pdsouza/android-generate-vendor
Set of scripts to automate AOSP compatible vendor blobs generation from factory images
https://github.com/anestisb/android-prepare-vendor
Will these scripts work on MTK devices?
jai44 said:
How to create Device tree for Android Rom building
I assume you already downloaded source code
before we start please do following
1. Install unpackbootimg
Go to https://github.com/jsharma44/bootimg-tools and download as a zip or use git clone command.
extract files
cd directory
make
now you will find unpackbootimg and mkbootimg in this directory
2. copy unpackbootimg and mkbootimg to /usr/bin
sudo cp unpackbootimg /usr/bin
sudo cp mkbootimg /usr/bin
Note this is necessary if you are getting error
” “unpackbootimg not found. Is your android build environment set up and have the host tools been built?
Click to expand...
Click to collapse
Did not get what you meant by host tools been built
Sparker0i said:
Did not get what you meant by host tools been built
Click to expand...
Click to collapse
Same question from me.
You are supposed to get two files in step two. I only got one - unpackbootimg is missing.
How to set up android build environment and install host tools? Is there a guide somewhere around?
jai44 said:
How to create Device tree for Android Rom building
I assume you already downloaded source code
before we start please do following
Thank You
Click to expand...
Click to collapse
Is this thread dead or any hope of further guidance.
What fo you mean source code
does this work for MTK devices?
adityaparmar07 said:
i am getting errors !
Click to expand...
Click to collapse
[/QUOTE]
I tried to search but cannot get anything I'm using mac os x 10.12.6
[/QUOTE]
several years late, but you had a space between . and build instead of a /
FeyoMx said:
Thank you very much for the tutorial I will try to do it
Enviado desde mi A7010a48 mediante Tapatalk
Click to expand...
Click to collapse
what source are you talking about sir?
Hello, im trying to compile SM-T970 kernel but it returns error i searched through internet but i cant find any solution. Everything starts with "make: secgetspf: No such file or directory" error.
I think there is missing package. I found this https://github.com/b1ad3runn3r/drag-kernel-t975/issues/1#issuecomment-952635840 on github and I installed the packages that mentioned in issue.
but the error contiunes.
this is the output when i run "make clean"
make: secgetspf: No such file or directory
kperfmon_DUMMY="CONFIG_KPERFMON is off."
kperfmon_DUMMY="perflog.h file is missing."
cp: cannot stat './../../system/core/liblog/include/log/perflog.h': No such file or directory
kperfmon_DUMMY=""
drivers/net/wireless/broadcom/Makefile:13: CONFIG_BCM4389 =
drivers/net/wireless/broadcom/Makefile:14: CONFIG_BCM4375 =
make[4]: secgetspf: No such file or directory
drivers/sensors/vl53l5/Makefile:100: LOG_ENABLE=TRUE
drivers/sensors/vl53l5/Makefile:132: BUILD_TYPE=RELEASE
drivers/sensors/vl53l5/Makefile:183: LOG_ENABLE=TRUE
security/samsung/defex_lsm/Makefile:14: [DEFEX] INTEGRITY_ENABLE
CLEAN security/samsung/defex_lsm
Target not found