1 |
Hi, |
2 |
|
3 |
Yes I will download the Xiaomi boot image by ebuild. |
4 |
|
5 |
I had proposed this small project so that it can be successfully completed |
6 |
within the time frame of three months. |
7 |
Eliminating the concept of boot image is feasible. |
8 |
If you recommend, I would like to extend my proposal by adding it. |
9 |
Aboot the application bootloader of Redmi Note 4 reads boot image and loads |
10 |
kernel+ramdisk into RAM. |
11 |
On the other hand, bootloader on computer reads kernel and ramdisk ,and |
12 |
loads those into RAM. |
13 |
We can make Aboot function like a computer bootloader by editing its source |
14 |
code [1]. |
15 |
However we will require Xiaomi's permission to allow us install the newly |
16 |
built Aboot because Aboot gets checked by SBL(Secondary boot loader) [2]. |
17 |
|
18 |
I recently got familiar with basics of Gentoo. |
19 |
I have been using Ubuntu since 2 years. |
20 |
I have Ubuntu on my desktop computer and laptop. |
21 |
I use Ubuntu for compiling ASM, C and MATLAB codes. |
22 |
I also use it for running Guitarix,Rakarrack ( virtual guitar amplifiers) |
23 |
and Audacity sound recorder. |
24 |
Through Ubuntu I got to know about initramfs as well as list of services |
25 |
that are started by sysvinit and upstart. |
26 |
i.e. udev, pulseaudio , x-sever, lightdm, dbus, cron etc. |
27 |
I have experimented with these sevices by starting and stopping. |
28 |
I have not contributed to any community or solved bugs so far. |
29 |
I have Dell Venue 7 3740 which is an Intel powered Android device.This |
30 |
device is my main device for Android development. |
31 |
https://opensource.dell.com/releases/Venue_7_3740_ |
32 |
Merrifield/developer-edition/A195/ |
33 |
|
34 |
1. https://www.tldp.org/HOWTO/SRM-HOWTO/aboot.html |
35 |
2. https://forum.xda-developers.com/android/general/info- |
36 |
android-device-partitions-basic-t3586565/amp/ |
37 |
|
38 |
On Thu, Mar 22, 2018 at 11:44 AM, Benda Xu <heroxbd@g.o> wrote: |
39 |
|
40 |
> Hi Mishal, |
41 |
> |
42 |
> Overall, I wish you could be more ambitious on what you will achieve in |
43 |
> 3 months. The present scope of 1 kernel ebuild is too limited. |
44 |
> |
45 |
> The manuscript structure is well organized. Below are some minor |
46 |
> comments. |
47 |
> |
48 |
> Mishal Roy <roymishal210@×××××.com> writes: |
49 |
> |
50 |
> > I have drafted a proposal for Google Summer of Code 2018 and attached |
51 |
> > it in the form of PDF. |
52 |
> > |
53 |
> > Please go through it and give me necessary feedback. |
54 |
> |
55 |
> > Android Kernel Update using Gentoo on Android. |
56 |
> |
57 |
> > Overview : |
58 |
> |
59 |
> > The computing power of Android devices have started rivaling laptops |
60 |
> > and desktop computers. Hence compile time and build time on Android |
61 |
> > devices have improved. |
62 |
> |
63 |
> > Gentoo Prefix on Android devices will bring easy kernel updates. |
64 |
> |
65 |
> > This project aims at updating kernel on an Android device by compiling |
66 |
> > and installing it with the help of Gentoo Prefix. |
67 |
> |
68 |
> > Objective : |
69 |
> |
70 |
> > This project will eliminate the need of a secondary device like |
71 |
> > computer for compiling Android kernels. |
72 |
> |
73 |
> > User without having kernel building experience can easily get the |
74 |
> > kernel of his Android device built and installed by running an ebuild |
75 |
> > script. |
76 |
> |
77 |
> > Deliverables : |
78 |
> |
79 |
> > 2018.02.25 64 bit tarball from [1] will be used . Android Device to |
80 |
> > be used in the project is Xiaomi Redmi Note 4. |
81 |
> |
82 |
> > In this project an ebuild script will be developed which will do the |
83 |
> > following |
84 |
> |
85 |
> > Download kernel source code of the device from [2], boot image |
86 |
> > pack/unpack tools from [3] and boot image from [4]. |
87 |
> |
88 |
> > Compile Kernel and its modules. |
89 |
> |
90 |
> > Unpack the boot image using code from [3] and install kernel modules |
91 |
> > into ramdisk. |
92 |
> |
93 |
> > Create a boot image[3] with the recently compiled kernel and edited |
94 |
> > ramdisk. Install the boot image by writing it to |
95 |
> > /dev/block/mmcblk0p21. |
96 |
> |
97 |
> > Timeline : |
98 |
> |
99 |
> > Before Phase 1 Evaluation Deadline kernel source code will be |
100 |
> > downloaded and compiled using GCC Compiler of Gentoo Android |
101 |
> > Prefix. Built kernel will be tested on the Android device. Thereafter |
102 |
> > an ebuild will be written that downloads kernel source code , tools |
103 |
> > and boot image |
104 |
> |
105 |
> Are you going to download the Xiaomi boot images by the ebuild? |
106 |
> |
107 |
> > as well as compiles kernel and its modules. |
108 |
> |
109 |
> > Before Phase 2 Evaluation Deadline ebuild script will be extended by |
110 |
> > adding code to unpack boot image, install kernel modules into the |
111 |
> > ramdisk and create a new boot image with recently compiled kernel and |
112 |
> > edited ramdisk. |
113 |
> |
114 |
> I wish we could eliminate the concept of boot image for daily use of |
115 |
> Android, just as normal computers. |
116 |
> |
117 |
> > efore Phase 3 Evaluation Deadline a backup of the boot image present |
118 |
> > in /dev/block/mmcblk0p21 will be created. The ebuild will be competed |
119 |
> > by adding final code to install the new boot image. Finally, the |
120 |
> > ebuild will be executed. |
121 |
> |
122 |
> > Resources : |
123 |
> > 1. https://wiki.gentoo.org/wiki/Project:Android/tarball |
124 |
> > 2.https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/mido-m-oss |
125 |
> > 3.https://github.com/osm0sis/mkbootimg |
126 |
> > 4.https://androidfilebox.com/app/stock-miui-recovery-image- |
127 |
> for-redmi-note-4-snapdragon/ |
128 |
> |
129 |
> > About Me : |
130 |
> |
131 |
> > I am Mishal Roy, a third year Electronics and Telecommunication |
132 |
> > engineering student of Atharva College of Engineering ,Mumbai , |
133 |
> > India. I have keen interest in Operating Systems. I am familiar with |
134 |
> > Opearating Systems like Ubuntu, Gentoo and Android. |
135 |
> |
136 |
> Please specify to what extent you are familiar with Ubuntu, Gentoo and |
137 |
> Android. |
138 |
> |
139 |
> For example, how many years have you been using it? Where did you |
140 |
> install Ubuntu and Gentoo? What do you use them for? Have you made any |
141 |
> contribution to the community? Do you have links to your previous |
142 |
> Android ROM development projects? |
143 |
> |
144 |
> > I am well versed in programming languages like C, C++, Java, x86 |
145 |
> > Assembly and Bash. |
146 |
> |
147 |
> Nice. Do you have code snippets publicly available? |
148 |
> |
149 |
> > I am very focused, organised and love to take challenges. |
150 |
> |
151 |
> Cheers, |
152 |
> Benda |
153 |
> |
154 |
> |