{"id":11976,"date":"2011-12-19T10:37:55","date_gmt":"2011-12-19T01:37:55","guid":{"rendered":"https:\/\/www.hardkernel.com\/?p=11976"},"modified":"2018-12-07T16:08:35","modified_gmt":"2018-12-07T07:08:35","slug":"how-to-port-android-4-0-3-ice-cream-sandwichics-on-odroid-7","status":"publish","type":"post","link":"https:\/\/www.hardkernel.com\/ko\/blog\/how-to-port-android-4-0-3-ice-cream-sandwichics-on-odroid-7\/","title":{"rendered":"How to port Android 4.0.3 Ice Cream Sandwich(ICS) on ODROID-7"},"content":{"rendered":"<p>Screenshot of ICS 4.0.3 version information on ODROID-7.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-11960\" src=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112191341223811.png\" alt=\"\" width=\"480\" height=\"800\" srcset=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112191341223811.png 480w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112191341223811-247x412.png 247w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p><span style=\"font-size: medium;\">Here is a brief instruction how to port\/install the ICS into ODROID-7.<br \/>\n<\/span>Note, this is a very early version. Unstable and there are many unsupported features.<\/p>\n<p>1. Get the Kernel source code of ODROID-7 (ver 2.6.35)<br \/>\n<a href=\"http:\/\/com.odroid.com\/sigong\/nf_file_board\/nfile_board_view.php?keyword=&amp;bid=41\" target=\"_blank\" rel=\"noopener\">http:\/\/com.odroid.com\/sigong\/nf_file_board\/nfile_board_view.php?keyword=&amp;bid=41<\/a><\/p>\n<p>Modify the touch screen driver as below.<br \/>\nkernel\/drivers\/input\/touchscreen\/odroid7_MT_touch_portrait.c<\/p>\n<pre>169                 input_sync(hkc1xx_touch.driver);\r\n170 \r\n171 \/\/codewalker\r\n172                 input_mt_sync(hkc1xx_touch.driver);\r\n173 \r\n174                 input_sync(hkc1xx_touch.driver);\r\n175 \r\n176 \r\n177 #if defined(DEBUG_HKC1XX_TOUCH_MSG) \r\n178 printk(\"%s : Penup event send[x = %d, y = %d]n\", __FUNCTION__, hkc1xx_touch.x, hkc1xx_touch.y); \r\n179 #endif\r\n<\/pre>\n<p>2. Download GPU device driver source code of Nexus-S from this link.<br \/>\n<a href=\"https:\/\/github.com\/Kwiboo\/kernel_samsung_crespo\/tree\/master\/drivers\/gpu\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/Kwiboo\/kernel_samsung_crespo\/tree\/master\/drivers\/gpu<\/a><br \/>\nCopy(overwrite) the GPU code to ODROID-7 kernel source and compile it.<\/p>\n<p>3. Get the official Android ICS source code.(android-4.0.3_r1 IML74K)<br \/>\n<span class=\"Apple-style-span\">repo init -u https:\/\/android.googlesource.com\/platform\/manifest -b android-4.0.3_r1<\/span><br \/>\n<span class=\"Apple-style-span\">repo sync<\/span><br \/>\n<span class=\"Apple-style-span\"><br \/>\n<\/span>4. Get the modified files from below link and overwrite it into \/device &amp; \/vendor directory of ICS source tree.<br \/>\n<a href=\"http:\/\/dl.dropbox.com\/u\/4485660\/ICS.tar.gz\" target=\"_blank\" rel=\"noopener\"><span class=\"Apple-style-span\">http:\/\/dl.dropbox.com\/u\/4485660\/ICS.tar.gz<\/span><\/a><br \/>\nThis file contains various patches.<\/p>\n<p>4. Get the modified files from below link and overwrite it into \/device &amp; \/vendor directory of ICS source tree.<br \/>\n<a href=\"http:\/\/dl.dropbox.com\/u\/4485660\/ICS.tar.gz\" target=\"_blank\" rel=\"noopener\"><span class=\"Apple-style-span\">http:\/\/dl.dropbox.com\/u\/4485660\/ICS.tar.gz<\/span><\/a><br \/>\nThis file contains various patches.<\/p>\n<p>5. Modify WiFi code as below for internet access.<\/p>\n<p><span class=\"Apple-style-span\">device\/hardkernel\/odroid7\/BoardConfigCommon.mk<\/span><\/p>\n<pre>71 #WIFI_DRIVER_MODULE_ARG := \"firmware_path=\/vendor\/firmware\/fw_bcm4329.bin nvram_path=\/vendor\/firmware\/nvram_net.txt iface_name=wlan\" \r\n72 WIFI_DRIVER_MODULE_ARG := \"iface_name=wlan firmware_path=\/vendor\/firmware\/fw_bcm4329.bin nvram_path=\/vendor\/firmware\/nvram\" \r\n<\/pre>\n<p>And copy the fw_bcm4329.bin &amp; nvram into proper location.<br \/>\nModify hardware\/libhardware_legacy\/wifi\/wifi.c<\/p>\n<pre>#define WIFI_WAKEUP_CTL_FP \"\/sys\/devices\/platform\/hkc1xx-sysfs\/wifi_wakeup\" \/\/ 1 -&gt; wakeup on \r\n#define WIFI_REG_CTL_FP \"\/sys\/devices\/platform\/hkc1xx-sysfs\/wifi_reg\" \/\/ 1 -&gt; reg on \r\n#define WIFI_RESET_CTL_FP \"\/sys\/devices\/platform\/hkc1xx-sysfs\/wifi_reset\" \/\/ 1 -&gt; reset on \r\nint wifi_set_module_status (char *ctl_fp, unsigned char status); \r\nint wifi_get_module_status (char *ctl_fp); \r\nstatic int insmod(const char *filename, const char *args) { \r\n\r\nint wifi_load_driver() { #ifdef WIFI_DRIVER_MODULE_PATH char driver_status[PROPERTY_VALUE_MAX]; int count = 100; \/* wait at most 20 seconds for completion *\/ if (is_wifi_driver_loaded()) { return 0; } \/\/ Wifi power control &amp; wakeup enable wifi_set_module_status(WIFI_WAKEUP_CTL_FP, 1); usleep(10000); wifi_set_module_status(WIFI_REG_CTL_FP, 1); usleep(10000); wifi_set_module_status(WIFI_RESET_CTL_FP, 1); sleep(1); sync(); if (insmod(DRIVER_MODULE_PATH, DRIVER_MODULE_ARG) &lt; 0) { LOGE(\"insmod(DRIVER_MODULE_PATH = %s, DRIVER_MODULE_ARG = %s) FAIL!!!\", DRIVER_MODULE_PATH, DRIVER_MODULE_ARG); wifi_set_module_status(WIFI_WAKEUP_CTL_FP, 0); usleep(10000); wifi_set_module_status(WIFI_REG_CTL_FP, 0); usleep(10000); wifi_set_module_status(WIFI_RESET_CTL_FP, 0); sleep(1); sync(); return -1; } if (strcmp(FIRMWARE_LOADER,\"\") == 0) { int wifi_unload_driver() { usleep(200000); \/* allow to finish interface down *\/ #ifdef WIFI_DRIVER_MODULE_PATH if (rmmod(DRIVER_MODULE_NAME) == 0) { int count = 20; \/* wait at most 10 seconds for completion *\/ while (count-- &gt; 0) { if (!is_wifi_driver_loaded()) break; usleep(500000); } wifi_set_module_status(WIFI_WAKEUP_CTL_FP, 0); usleep(10000); wifi_set_module_status(WIFI_REG_CTL_FP, 0); usleep(10000); wifi_set_module_status(WIFI_RESET_CTL_FP, 0); sleep(1); sync(); usleep(500000); \/* allow card removal *\/ if (count) { return 0; \r\n\r\nint wifi_set_module_status(char *ctl_fp, unsigned char status) { int fd, ret, nwr; char buf[10]; if((fd = open(ctl_fp, O_RDWR)) &lt; 0) { LOGE(\"%s(%s) : Cannot access \"%s\"\", __FILE__, __FUNCTION__, ctl_fp); return -1; \/\/ fd open fail } memset((void *)buf, 0x00, sizeof(buf)); if(status) nwr = sprintf(buf, \"%dn\", 1); else nwr = sprintf(buf, \"%dn\", 0); ret = write(fd, buf, nwr); close(fd); if(ret == nwr) { LOGI(\"%s : write success (on = %d)\", ctl_fp, status); return 0; } else { LOGE(\"%s : write fail (on = %d)\", ctl_fp, status); return -1; } } \/\/---------------------------------------------------------------------------------------------------------------- int wifi_get_module_status(char *ctl_fp) { int fd, ret, nrd; char buf[10]; if((fd = open(ctl_fp, O_RDONLY)) &lt; 0) { LOGE(\"%s(%s) : Cannot access \"%s\"\", __FILE__, __FUNCTION__, ctl_fp); return -1; \/\/ fd open fail } memset((void *)buf, 0x00, sizeof(buf)); nrd = read(fd, buf, sizeof(buf)); close(fd); \/\/ read ok if(nrd) { if(!strncmp(buf, \"1\", 1)) { LOGI(\"%s : status == 1\", ctl_fp); return 1; \/\/ wakeup } else { LOGI(\"%s : status == 0\", ctl_fp); return 0; \/\/ suspend } } LOGI(\"%s(%s) : module status == unknown\", __FILE__, __FUNCTION__); return -1; } \/\/---------------------------------------------------------------------------------------------------------------- int wifi_module_wakeup_status() { int fd, ret, nrd; char buf[10]; if((fd = open(WIFI_WAKEUP_CTL_FP, O_RDONLY)) &lt; 0) { LOGE(\"%s(%s) : Cannot access \"%s\"\", __FILE__, __FUNCTION__, WIFI_WAKEUP_CTL_FP); return -1; \/\/ fd open fail } memset((void *)buf, 0x00, sizeof(buf)); nrd = read(fd, buf, sizeof(buf)); close(fd); \/\/ read ok if(nrd) { if(!strncmp(buf, \"1\", 1)) { LOGI(\"%s(%s) : module status == wakeup\", __FILE__, __FUNCTION__); return 1; \/\/ wakeup } else { LOGI(\"%s(%s) : module status == suspend\", __FILE__, __FUNCTION__); return 0; \/\/ suspend } } LOGI(\"%s(%s) : module status == unknown\", __FILE__, __FUNCTION__); return -1; } \/\/---------------------------------------------------------------------------------------------------------------- int wifi_module_wait_time(int waitTime) { LOGI(\"%s(%s) : module wait time = %d sec\", __FILE__, __FUNCTION__, waitTime); sleep(waitTime); sync(); return 0; } \r\n<\/pre>\n<div>You will have a new libhardware_legacy.so with above modification.<\/div>\n<div>Please note, bcm4329.ko file should be regenerated with &#8220;make modules&#8221; command of kernel build and copied to ODROID.<\/div>\n<div><\/div>\n<div><span class=\"Apple-style-span\">6. Let&#8217;s start build the ICS<br \/>\nchmod u+x device\/hardkerenl\/odroid7\/build_android.sh<br \/>\n<\/span><span class=\"Apple-style-span\">device\/hardkerenl\/odroid7\/build_android.sh<\/span><br \/>\n&nbsp;<\/p>\n<p>7. Install the Android system files and zImage and ramdisk-uboot.img\u00a0as we do for Gingerbread installation.<br \/>\n<a href=\"http:\/\/dev.odroid.com\/projects\/odroid-t\/\" target=\"_blank\" rel=\"noopener\">http:\/\/dev.odroid.com\/projects\/odroid-t\/<\/a><span style=\"font-size: medium;\">Tested features<br \/>\n&#8211; LCD driver with 3D accelerator<br \/>\n&#8211; Capacitive touch screen<br \/>\n&#8211; Sound output<br \/>\n&#8211; Sound input (Microphone)<br \/>\n&#8211; USB ADB driver<br \/>\n&#8211; USB Host HID (Mouse\/Keyboard)<br \/>\n&#8211; WiFi<br \/>\n&#8211; MFC driver for media player<br \/>\n&#8211; GPS driver<br \/>\n<\/span><span style=\"font-size: medium;\">&#8211; Accelerometer sensor<\/span><br \/>\n<span style=\"font-size: medium;\">&#8211; HOME key function<br \/>\n&#8211; Backlight Brightness control<br \/>\n&#8211; Battery Gauge \/ Charger driver<\/span><\/p>\n<p><span style=\"font-size: medium;\">To do list<br \/>\n&#8211; Camera<br \/>\n&#8211; Bluetooth<br \/>\n&#8211; HDMI<br \/>\n&#8211; Geo Magnetic Field sensor<br \/>\n<\/span><span style=\"font-size: medium;\">&#8211; NFC<\/span><\/p>\n<p>Update!<br \/>\nModified DPI for tablet mode (density=120)<br \/>\nSoftkey enabled<br \/>\nEnabled Home screen rotation<\/p>\n<\/div>\n<div><\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-11965\" src=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112270906351872-1.jpg\" alt=\"\" width=\"800\" height=\"480\" srcset=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112270906351872-1.jpg 800w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112270906351872-1-768x461.jpg 768w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112270906351872-1-247x148.jpg 247w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112270906351872-1-510x306.jpg 510w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-11967\" src=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112241647454507.jpg\" alt=\"\" width=\"800\" height=\"480\" srcset=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112241647454507.jpg 800w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112241647454507-768x461.jpg 768w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112241647454507-247x148.jpg 247w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112241647454507-510x306.jpg 510w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-11969\" src=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112241648037006.jpg\" alt=\"\" width=\"800\" height=\"480\" srcset=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112241648037006.jpg 800w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112241648037006-768x461.jpg 768w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112241648037006-247x148.jpg 247w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112241648037006-510x306.jpg 510w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-11971\" src=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112241648144727.jpg\" alt=\"\" width=\"480\" height=\"800\" srcset=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112241648144727.jpg 480w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112241648144727-247x412.jpg 247w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-11973\" src=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112270906468978.jpg\" alt=\"\" width=\"800\" height=\"480\" srcset=\"https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112270906468978.jpg 800w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112270906468978-768x461.jpg 768w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112270906468978-247x148.jpg 247w, https:\/\/www.hardkernel.com\/wp-content\/uploads\/2018\/12\/201112270906468978-510x306.jpg 510w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Screenshot of ICS 4.0.3 version information on ODROID-7. Here is a brief instruction how to port\/install the ICS into ODROID-7. Note, this is a very early version. Unstable and there are many unsupported features. 1. Get the Kernel source code of ODROID-7 (ver 2.6.35) http:\/\/com.odroid.com\/sigong\/nf_file_board\/nfile_board_view.php?keyword=&amp;bid=41 Modify the touch screen driver as below. kernel\/drivers\/input\/touchscreen\/odroid7_MT_touch_portrait.c 169 input_sync(hkc1xx_touch.driver); [&#8230;]\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18463],"tags":[20148],"class_list":["post-11976","post","type-post","status-publish","format-standard","hentry","category-blog","tag-odroid-7"],"_links":{"self":[{"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/posts\/11976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/comments?post=11976"}],"version-history":[{"count":1,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/posts\/11976\/revisions"}],"predecessor-version":[{"id":11977,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/posts\/11976\/revisions\/11977"}],"wp:attachment":[{"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/media?parent=11976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/categories?post=11976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/tags?post=11976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}