Build Android on ODROID-U3 from Scratch

Post Reply
Michel Labitzke
Posts: 96
Joined: Mon Jun 16, 2014 5:45 pm
languages_spoken: english, german
ODROIDs: U3, U3+, C1
Location: Germany, Ulm
Has thanked: 0
Been thanked: 0
Contact:

Build Android on ODROID-U3 from Scratch

Unread post by Michel Labitzke » Tue Jun 24, 2014 5:29 pm

Hey Odroidians,

I followed the instuctions from the article from ODROID Magazin Issue #4 (Apr 2014)

- Dowloaded the source of Android and Kernel
- Compiled
- get the build files
- used the script "install-emmc.sh" to Flash an emmc via a sd-adapter
- insterted the emmc in ODROID

--> nothing happens

Did I miss something?

Any ideas?

Thank you

User avatar
odroid
Site Admin
Posts: 33615
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 491 times
Been thanked: 501 times
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by odroid » Tue Jun 24, 2014 6:55 pm

Normally we send the compiled images to the board eMMC via fastboot protocol with USB cable and USB-UART.

Michel Labitzke
Posts: 96
Joined: Mon Jun 16, 2014 5:45 pm
languages_spoken: english, german
ODROIDs: U3, U3+, C1
Location: Germany, Ulm
Has thanked: 0
Been thanked: 0
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by Michel Labitzke » Tue Jun 24, 2014 7:02 pm

Sounds good.

Is there a tutorial, or can you explain in short how to do this?

User avatar
odroid
Site Admin
Posts: 33615
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 491 times
Been thanked: 501 times
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by odroid » Tue Jun 24, 2014 7:08 pm


Michel Labitzke
Posts: 96
Joined: Mon Jun 16, 2014 5:45 pm
languages_spoken: english, german
ODROIDs: U3, U3+, C1
Location: Germany, Ulm
Has thanked: 0
Been thanked: 0
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by Michel Labitzke » Tue Jun 24, 2014 10:58 pm

That's cool!!
I didn't find These links via search.

Ok, I have to get an UART Interface to get access to fastboot mode.

But is there also a way to flash the Android Images directly from Host (ubuntu/Win7) on an SDcard /eMMC?

mdrjr
Site Admin
Posts: 11741
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 20 times
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by mdrjr » Wed Jun 25, 2014 12:47 am

Michel Labitzke wrote:That's cool!!
I didn't find These links via search.

Ok, I have to get an UART Interface to get access to fastboot mode.

But is there also a way to flash the Android Images directly from Host (ubuntu/Win7) on an SDcard /eMMC?
Its possible in theory.. but too much trouble..
Fastboot is prefered it will make your life way easier.

Michel Labitzke
Posts: 96
Joined: Mon Jun 16, 2014 5:45 pm
languages_spoken: english, german
ODROIDs: U3, U3+, C1
Location: Germany, Ulm
Has thanked: 0
Been thanked: 0
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by Michel Labitzke » Thu Jun 26, 2014 10:53 pm

I checked out the source,
builded the source,
flashed the kernel due to the instructions from the link.

But which files do I have to Flash too? All Images? And how? I only found the Flash instructions for the kernel.
And how do I have to create a filesystem onto an empty eMMC Card?

Thank you again for answering my questions.

mdrjr
Site Admin
Posts: 11741
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 20 times
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by mdrjr » Thu Jun 26, 2014 10:55 pm

When you type fastboot on the board
it will tell you all the available targets.

system/userdata/cache/bootloader/.....

so..
fastboot flash kernel zImage
fastboot flash system system.img
.....
so on.

To create the first partition table you have to use u-boot fdisk command :)
Type help fdisk on u-boot for more information :)

Michel Labitzke
Posts: 96
Joined: Mon Jun 16, 2014 5:45 pm
languages_spoken: english, german
ODROIDs: U3, U3+, C1
Location: Germany, Ulm
Has thanked: 0
Been thanked: 0
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by Michel Labitzke » Thu Jun 26, 2014 11:03 pm

So

Code: Select all

USB3503 NINT = OUTPUT LOW!
ModeKey Check... run normal_boot
No ethernet found.
Hit any key to stop autoboot:  0
Exynos4412 # fastboot
[Partition table on MoviNAND]
ptn 0 name='fwbl1' start=0x1 len=N/A (use hard-coded info. (cmd: movi))
ptn 1 name='bl2' start=N/A len=N/A (use hard-coded info. (cmd: movi))
ptn 2 name='bootloader' start=N/A len=N/A (use hard-coded info. (cmd: movi))
ptn 3 name='tzsw' start=N/A len=N/A (use hard-coded info. (cmd: movi))
ptn 4 name='kernel' start=N/A len=N/A (use hard-coded info. (cmd: movi))
ptn 5 name='ramdisk' start=N/A len=0x0(~16777216KB) (use hard-coded info. (cmd: movi))
ptn 6 name='system' start=0x1 len=0x0(~1077609984KB)
ptn 7 name='userdata' start=0x1 len=0x0(~-2147389952KB)
ptn 8 name='cache' start=0x1 len=0x0(~137567232KB)
ptn 9 name='fat' start=0x1 len=0x0(~15472640KB)
OTG cable Connected!
'fwbl1' = ?
'bl2' = ?
'bootloader' = ?
'tzsw' = ?
'kernel' = kernel/zImage
'ramdisk' = ramdisk.img
'system' = System.img
'userdata' = userdata.img
'cache' = Cache.img
'fat' = ?

which Images are the right ones?

mdrjr
Site Admin
Posts: 11741
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 20 times
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by mdrjr » Fri Jun 27, 2014 12:10 am

The first 4 are from the bootloader (U-Boot)
http://odroid.in/guides/ubuntu-lfs/boot.tar.gz

And the last one (fat partition) we don't use it from fastboot :)

Michel Labitzke
Posts: 96
Joined: Mon Jun 16, 2014 5:45 pm
languages_spoken: english, german
ODROIDs: U3, U3+, C1
Location: Germany, Ulm
Has thanked: 0
Been thanked: 0
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by Michel Labitzke » Fri Jun 27, 2014 3:43 pm

Cool!

Now I have flashed the compiled Images and the the boot Images from your link.

But when start the ODROID now I get the following:

Code: Select all

U-Boot 2010.12-svn (Dec 21 2012 - 19:44:04) for Exynox4412


CPU: S5PC220 [Samsung SOC on SMP Platform Base on ARM CortexA9]
APLL = 1000MHz, MPLL = 880MHz
DRAM:  2047 MiB

PMIC VERSION : 0x00, CHIP REV : 2
TrustZone Enabled BSP
BL1 version: 20121128


Checking Boot Mode ... EMMC4.41
REVISION: 2.0
Manufacturer TOSHIBA [ 7456MB ]
NAME: S5P_MSHC4
MMC Device 0: 7456 MB
MMC Device 1: 0 MB
MMC Device 2 not found
*** Warning - using default environment

ModeKey Check... run normal_boot
Net:   No ethernet found.
Hit any key to stop autoboot:  0
NAME: S5P_MSHC4
NAME: S5P_MSHC4
>>> Load Boot Script from mmc 0:1 <<<
NAME: S5P_MSHC4
Partition1: Start Address(0x66448f), Size(0x80760c)
reading boot.scr

** Unable to read "boot.scr" from mmc 0:1 **
>>> Load Boot Script from mmc 0:2 <<<
NAME: S5P_MSHC4
Partition2: Start Address(0x20cc7), Size(0x201d83)
reading boot.scr

** Unable to read "boot.scr" from mmc 0:2 **
>>> Run Default Bootcmd <<<
reading kernel..device 0 Start 2455, Count 16384
MMC read: dev # 0, block # 2455, count 16384 ... 16384 blocks read: OK
completed
reading RFS..device 0 Count 18839, Start 2048
MMC read: dev # 0, block # 18839, count 2048 ... 2048 blocks read: OK
completed
Boot with zImage
Wrong Ramdisk Image Format
[err] boot_get_ramdisk

Starting kernel ...
and later

Code: Select all

[    3.818822] Failed to execute /init.  Attempting defaults...
[    3.826010] Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
Seems there is something wrong with boot.scr and init.

Can you please help me again?

Michel Labitzke
Posts: 96
Joined: Mon Jun 16, 2014 5:45 pm
languages_spoken: english, german
ODROIDs: U3, U3+, C1
Location: Germany, Ulm
Has thanked: 0
Been thanked: 0
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by Michel Labitzke » Mon Jun 30, 2014 8:10 pm

I have reflashed the eMMC with the delivered Content.
Flashed my own kernel via fastboot --> works

If I try to Flash the own build System.img via fastboot I get an error.

Code: Select all

fastboot flash system system.img
sending 'system' (322414 KB)...
FAILED (remote: data too large)
finished. total time: 0.000s
SDK is updated to the newest Version.

on the device:

Code: Select all

ModeKey Check... run normal_boot
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Exynos4412 # fastboot
[Partition table on MoviNAND]
ptn 0 name='fwbl1' start=0x8 len=N/A (use hard-coded info. (cmd: movi))
ptn 1 name='bl2' start=N/A len=N/A (use hard-coded info. (cmd: movi))
ptn 2 name='bootloader' start=N/A len=N/A (use hard-coded info. (cmd: movi))
ptn 3 name='tzsw' start=N/A len=N/A (use hard-coded info. (cmd: movi))
ptn 4 name='kernel' start=N/A len=N/A (use hard-coded info. (cmd: movi))
ptn 5 name='ramdisk' start=N/A len=0x4000(~16777216KB) (use hard-coded info. (cmd: movi))
ptn 6 name='system' start=0x4198E00 len=0x100EC1(~1077609984KB)
ptn 7 name='userdata' start=0x44549400 len=0x20005B(~-2147389952KB)
ptn 8 name='cache' start=0xC4560200 len=0x20CC7(~137567232KB)
ptn 9 name='fat' start=0xCC891E00 len=0x403B06(~15472640KB)
OTG cable Connected!
Does anyone know, what is going wrong?
Thanks in advance

User avatar
codewalker
Posts: 871
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 32 times
Been thanked: 40 times
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by codewalker » Tue Jul 01, 2014 1:11 pm

Show your partition table.

Exynos4412 # fdisk -p 0

Code: Select all

partion #    size(MB)     block start #    block count    partition_Id          
   1          4110          6702223         8418828          0x0C               
   2          1027           134343         2104707          0x83               
   3          2048          2239050         4194487          0x83               
   4           131          6433537          268686          0x83               
Exynos4412 # 


BoardConfig.mk
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824

1073741824(=1GByte) = (2 1027 134343 2104707 0x83)
Michel Labitzke wrote:I have reflashed the eMMC with the delivered Content.
Flashed my own kernel via fastboot --> works

If I try to Flash the own build System.img via fastboot I get an error.

Code: Select all

fastboot flash system system.img
sending 'system' (322414 KB)...
FAILED (remote: data too large)
finished. total time: 0.000s
SDK is updated to the newest Version.

on the device:

Code: Select all

ModeKey Check... run normal_boot
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Exynos4412 # fastboot
[Partition table on MoviNAND]
ptn 0 name='fwbl1' start=0x8 len=N/A (use hard-coded info. (cmd: movi))
ptn 1 name='bl2' start=N/A len=N/A (use hard-coded info. (cmd: movi))
ptn 2 name='bootloader' start=N/A len=N/A (use hard-coded info. (cmd: movi))
ptn 3 name='tzsw' start=N/A len=N/A (use hard-coded info. (cmd: movi))
ptn 4 name='kernel' start=N/A len=N/A (use hard-coded info. (cmd: movi))
ptn 5 name='ramdisk' start=N/A len=0x4000(~16777216KB) (use hard-coded info. (cmd: movi))
ptn 6 name='system' start=0x4198E00 len=0x100EC1(~1077609984KB)
ptn 7 name='userdata' start=0x44549400 len=0x20005B(~-2147389952KB)
ptn 8 name='cache' start=0xC4560200 len=0x20CC7(~137567232KB)
ptn 9 name='fat' start=0xCC891E00 len=0x403B06(~15472640KB)
OTG cable Connected!
Does anyone know, what is going wrong?
Thanks in advance

Michel Labitzke
Posts: 96
Joined: Mon Jun 16, 2014 5:45 pm
languages_spoken: english, german
ODROIDs: U3, U3+, C1
Location: Germany, Ulm
Has thanked: 0
Been thanked: 0
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by Michel Labitzke » Tue Jul 01, 2014 2:57 pm

here is Output of fdisk -p 0

Code: Select all

Exynos4412 # fdisk -p 0

partion #    size(MB)     block start #    block count    partition_Id
   1          4110          6702223         8418828          0x0C
   2          1027           134343         2104707          0x83
   3          2048          2239050         4194487          0x83
   4           131          6433537          268686          0x83
And here is an excerpt of device/hardkernel/odroidu/BoardConfig.mk

Code: Select all

BOARD_HAS_TWOSTORAGES := true
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_CACHEIMAGE_PARTITION_SIZE := 134217728
BOARD_USERDATAIMAGE_PARTITION_SIZE := 2147483648
BOARD_FLASH_BLOCK_SIZE := 4096
Btw.: Ist possible Flash the System.img from the Build from the Tutorial source
http://dn.odroid.com/4412/Android/4.1.2 ... -2014/BSP/

But not with this one

Code: Select all

$ repo init -u https://github.com/hardkernel/android.git -b 4412_4.4.4_master
$ repo sync
$ repo start 4412_4.4.4_master --all
$ ./build_android.sh odroidu [x,x2]
Looks strange, doesn't it?

User avatar
codewalker
Posts: 871
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 32 times
Been thanked: 40 times
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by codewalker » Tue Jul 01, 2014 3:19 pm

Do you want android-4.1.2?

try this.
https://github.com/hardkernel/android/t ... 1.2_master
Michel Labitzke wrote:here is Output of fdisk -p 0

Code: Select all

Exynos4412 # fdisk -p 0

partion #    size(MB)     block start #    block count    partition_Id
   1          4110          6702223         8418828          0x0C
   2          1027           134343         2104707          0x83
   3          2048          2239050         4194487          0x83
   4           131          6433537          268686          0x83
And here is an excerpt of device/hardkernel/odroidu/BoardConfig.mk

Code: Select all

BOARD_HAS_TWOSTORAGES := true
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_CACHEIMAGE_PARTITION_SIZE := 134217728
BOARD_USERDATAIMAGE_PARTITION_SIZE := 2147483648
BOARD_FLASH_BLOCK_SIZE := 4096
Btw.: Ist possible Flash the System.img from the Build from the Tutorial source
http://dn.odroid.com/4412/Android/4.1.2 ... -2014/BSP/

But not with this one

Code: Select all

$ repo init -u https://github.com/hardkernel/android.git -b 4412_4.4.4_master
$ repo sync
$ repo start 4412_4.4.4_master --all
$ ./build_android.sh odroidu [x,x2]
Looks strange, doesn't it?

Michel Labitzke
Posts: 96
Joined: Mon Jun 16, 2014 5:45 pm
languages_spoken: english, german
ODROIDs: U3, U3+, C1
Location: Germany, Ulm
Has thanked: 0
Been thanked: 0
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by Michel Labitzke » Tue Jul 01, 2014 3:22 pm

No Android 4.4 would be much better.

Michel Labitzke
Posts: 96
Joined: Mon Jun 16, 2014 5:45 pm
languages_spoken: english, german
ODROIDs: U3, U3+, C1
Location: Germany, Ulm
Has thanked: 0
Been thanked: 0
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by Michel Labitzke » Tue Jul 01, 2014 3:34 pm

After flashing an eMMC with with the eMMC-Recovery-Tool (http://forum.odroid.com/viewtopic.php?f=53&t=969#p5304) and the emmc-self-installer.img I was able to Flash the own build Images via fastboot. Looks very strage to me, but for now this could be an adequate Workaround for me.

But after flashing and on boot-up I get the following message (excerpt):

Code: Select all

[    3.611785] Failed to execute /init.  Attempting defaults...
[    4.616580] init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
[    4.619682] init: cannot find '/sbin/ueventd', disabling 'ueventd'
[    9.008909] init: Timed out waiting for /dev/.coldboot_done
[    9.008991] init: /dev/hw_random not found
[    9.642625]  [MAX98090] max98090_set_playback_speaker_headset(112)
[   16.269700] CPU1: shutdown
[   16.808879] CPU2: shutdown
[   17.307216] CPU3: shutdown
[   29.001490] fs_mgr: Cannot mount filesystem on /dev/block/mmcblk0p2 at /system
[   29.003144] init: fs_mgr_mount_all returned an error
[   29.016739] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   29.027224] init: /dev/hw_random not found
[   29.028431] init: Unable to open persistent property directory /data/property errno: 2
[   29.050449] init: cannot find '/sbin/healthd', disabling 'healthd'
[   29.051105] init: cannot find '/system/bin/servicemanager', disabling 'servicemanager'
[   29.059126] init: cannot find '/system/bin/vold', disabling 'vold'
[   29.065357] init: cannot find '/system/xbin/su', disabling 'su_daemon'
[   29.071669] init: cannot find '/system/bin/setup_fs', disabling 'setup_fs'
[   29.078531] init: cannot find '/system/bin/insmod', disabling 'insmod_ax88179'
[   29.085721] init: cannot find '/system/bin/insmod', disabling 'uvc_usb_module'
[   29.092905] init: cannot find '/system/bin/insmod', disabling 'insmod_usbmidi'
[   29.100145] init: cannot find '/system/bin/netd', disabling 'netd'
[   29.106826] init: cannot find '/system/bin/debuggerd', disabling 'debuggerd'
[   29.113338] init: cannot find '/system/bin/rild', disabling 'ril-daemon'
[   29.120182] init: cannot find '/system/bin/surfaceflinger', disabling 'surfaceflinger'
[   29.127984] init: cannot find '/system/bin/app_process', disabling 'zygote'
[   29.134846] init: cannot find '/system/bin/drmserver', disabling 'drm'
[   29.142241] init: cannot find '/system/bin/mediaserver', disabling 'media'
[   29.148072] init: cannot find '/system/bin/installd', disabling 'installd'
[   29.154926] init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
[   29.163247] init: cannot find '/system/bin/keystore', disabling 'keystore'
[   29.170206] init: cannot find '/system/bin/sysinit', disabling 'sysinit'
[   29.177261] init: property 'sys.powerctl' doesn't exist while expanding '${sys.powerctl}'
[   29.184930] init: powerctl: cannot expand '${sys.powerctl}'
[   29.190482] init: property 'sys.sysctl.extra_free_kbytes' doesn't exist while expanding '${sys.sysctl.extra_free_kbytes}'
[   29.201407] init: cannot expand '${sys.sysctl.extra_free_kbytes}' while writing to '/proc/sys/vm/extra_free_kbytes'
[   29.211886] init: property 'sys.sysctl.tcp_def_init_rwnd' doesn't exist while expanding '${sys.sysctl.tcp_def_init_rwnd}'
[   29.222741] init: cannot expand '${sys.sysctl.tcp_def_init_rwnd}' while writing to '/proc/sys/net/ipv4/tcp_default_init_rwnd'
[   29.234016] init: service 'console' requires console
[   29.239132] adb_bind_config
[   29.241786] init: cannot find '/sbin/adbd', disabling 'adbd'
[   63.520878] failed to copy MFC F/W during init

I build the Android source and the kernel source in different directories and then flashed the Images and the zImage from kerneldir/arch/arm/boot/zImage.
Could this be the Problem? So I think all the modules aren't installed.
Is there a way to integrate the kernel into the Android tree and compile together?
Do you know if the Workaround (patches) from the tutorial from ODROID Magazin 4 also working for Android 4.4.4?

spotrlederer
Posts: 65
Joined: Mon Feb 25, 2013 3:16 am
languages_spoken: english
ODROIDs: X2
Has thanked: 0
Been thanked: 0
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by spotrlederer » Sun Jul 06, 2014 7:13 am

same issue here building from source for odroid u2. i have another forum post in the U2 section that goes as follows :
"So there is an error in the repo manifest about which libsepol to use. you should use cyanogenmod's version because it includes building as a static library for linking against their version of busybox that you are using. also, after a successful compilation for the odroid u2, i cannot get the system up and running. i can fastboot flash everything to an sdcard on uart, but after fastboot reboot, i cannot complete first boot. error got:

fs_mgr: Cannot mount filesystem on /dev/block/mmcblk0p2 at /system
init: fs_mgr_mount_all returned an error
EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

and then a ton of init errors because it cannot find /system and start services.

How do i correct this? i have tried zeroing out the sdcard, i have messed with the odroidu boardconfig.mk to use a single storage, i cannot figure this out. yet i can run the pre-compile 07012014 rom for the u2 on sd card. what am i doing wrong? also remeber, i've been working with my odroidu2 for almost 2 years now. i am no novice programmer. thanks for the help. also, these same errors if i con the update apk to use my update.zip instead. it loads the update, but then messes up on first boot all the same."

Michel Labitzke
Posts: 96
Joined: Mon Jun 16, 2014 5:45 pm
languages_spoken: english, german
ODROIDs: U3, U3+, C1
Location: Germany, Ulm
Has thanked: 0
Been thanked: 0
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by Michel Labitzke » Mon Jul 07, 2014 4:12 pm

spotrlederer wrote:"So there is an error in the repo manifest about which libsepol to use. you should use cyanogenmod's version because it includes building as a static library for linking against their version of busybox that you are using."
Ok, this Sound Fitting to my Problem.
But how do I have to Change the manifest?

Thanks for help.

spotrlederer
Posts: 65
Joined: Mon Feb 25, 2013 3:16 am
languages_spoken: english
ODROIDs: X2
Has thanked: 0
Been thanked: 0
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by spotrlederer » Tue Jul 08, 2014 1:39 pm

You seem to already know how to edit a manifest according to this post

http://forum.odroid.com/viewtopic.php?f=78&t=5488

you need to change the listing for /external/libsepol to android_external_libsepol, and change the remote to the cyanogenmod listing and not the AOSP or Odroid remotes. changes are in file .repo/manifest.xml
Last edited by spotrlederer on Tue Jul 08, 2014 11:59 pm, edited 2 times in total.

Michel Labitzke
Posts: 96
Joined: Mon Jun 16, 2014 5:45 pm
languages_spoken: english, german
ODROIDs: U3, U3+, C1
Location: Germany, Ulm
Has thanked: 0
Been thanked: 0
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by Michel Labitzke » Tue Jul 08, 2014 1:50 pm

Yes. i edited the manifest before.
But I'm not sure about the manifest. This was just found wirh trail and error.
So as you can see, my question, if this modification is correct, is unanswerd.

Sorry for this!

User avatar
codewalker
Posts: 871
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 32 times
Been thanked: 40 times
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by codewalker » Thu Jul 10, 2014 3:46 pm

check your .repo/manifest.xml

https://github.com/hardkernel/android/c ... d52b5342b7

commit ecae097fcc6c899e22ce9cf6536276d52b5342b7
Author: codewalker <codewalker@hardkernel.com>
Date: Mon Jun 9 16:47:43 2014 +0900

change busybox branch cm-11.0 to stable/cm-11.0

Change-Id: Ifdda3cab463a26c573d0943562c5836f7e246b17

spotrlederer wrote:same issue here building from source for odroid u2. i have another forum post in the U2 section that goes as follows :
"So there is an error in the repo manifest about which libsepol to use. you should use cyanogenmod's version because it includes building as a static library for linking against their version of busybox that you are using. also, after a successful compilation for the odroid u2, i cannot get the system up and running. i can fastboot flash everything to an sdcard on uart, but after fastboot reboot, i cannot complete first boot. error got:

fs_mgr: Cannot mount filesystem on /dev/block/mmcblk0p2 at /system
init: fs_mgr_mount_all returned an error
EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

and then a ton of init errors because it cannot find /system and start services.

How do i correct this? i have tried zeroing out the sdcard, i have messed with the odroidu boardconfig.mk to use a single storage, i cannot figure this out. yet i can run the pre-compile 07012014 rom for the u2 on sd card. what am i doing wrong? also remeber, i've been working with my odroidu2 for almost 2 years now. i am no novice programmer. thanks for the help. also, these same errors if i con the update apk to use my update.zip instead. it loads the update, but then messes up on first boot all the same."

Michel Labitzke
Posts: 96
Joined: Mon Jun 16, 2014 5:45 pm
languages_spoken: english, german
ODROIDs: U3, U3+, C1
Location: Germany, Ulm
Has thanked: 0
Been thanked: 0
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by Michel Labitzke » Fri Jul 11, 2014 1:32 am

Great.
Finally I think I understand the repo!
At least till the next issue :D

User avatar
codewalker
Posts: 871
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 32 times
Been thanked: 40 times
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by codewalker » Tue Jul 15, 2014 12:10 pm

plz, repo sync and build.

<project path="external/bzip2" name="platform/external/bzip2" groups="pdk" />
- <project path="external/busybox" name="android_external_busybox" remote="github" revision="refs/heads/stable/cm-11.0" />
+ <project path="external/busybox" name="android_external_busybox" remote="github" revision="d5b63cca67f555cd6e4c9b48ce5b1569620f199e" />
<project path="external/ceres-solver" name="platform/external/ceres-solver" />

I fixed revision for busybox project by commit id.

https://github.com/hardkernel/android/c ... ac3a16bbb5
Michel Labitzke wrote:Great.
Finally I think I understand the repo!
At least till the next issue :D

Michel Labitzke
Posts: 96
Joined: Mon Jun 16, 2014 5:45 pm
languages_spoken: english, german
ODROIDs: U3, U3+, C1
Location: Germany, Ulm
Has thanked: 0
Been thanked: 0
Contact:

Re: Build Android on ODROID-U3 from Scratch

Unread post by Michel Labitzke » Wed Jul 16, 2014 3:05 pm

Great!

This works for me.
Also after a "make clean" (this is the cause for the late answer).
I just have to modify the part "copy_root_2_system()" of the build script, as I mentioned in this Thread
http://forum.odroid.com/viewtopic.php?f=78&t=5526

Thank you

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 0 guests