Re: [android-building] Flashing kernel in pixel 2 (walleye)..?

2019-07-19 Thread 'Dan Willemsen' via Android Building
Have you read https://source.android.com/setup/build/building-kernels?

- Dan

On Fri, Jul 19, 2019 at 11:25 AM Saurabh Sakhare 
wrote:

> Hello, I'm newbie in kernel development. I want to know where can I get
> pixel 2 kernel and Clang toolchain and commands. I've been trying to
> compile it from last few days from random sources of git and google source.
> I could not compile a kernel I'm facing problem like some parse file is
> missing and arm32 toolchain. Pixel 2 is 64 bit wahoo. board is walleye. i'm
> trying every possible way somewhere I'm missing please help me out here.
>
>
>
> Then I rooted my phone and got SYSTEM_LAST_BOOT_logs it attached with
> mail.
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-building+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-building/2a095acf-f8af-4bfe-acfa-661d0d2d616f%40googlegroups.com
> 
> .
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CALQgHdkoLvNzA2UKfsOzjDCogOuHPNbLi_wRpyHhSoYF%2BZfb2A%40mail.gmail.com.


Re: [android-building] How to upload a driver that I created to my device?

2019-07-19 Thread 'Dan Willemsen' via Android Building
Android (as AOSP) does not build the kernel along with the platform code --
it's expected to be delivered as a prebuilt. So setting KERNEL_DEFCONFIG
won't do anything.

- Dan

On Fri, Jul 19, 2019 at 11:26 AM abhishekkumardwiv...@gmail.com <
abhishekkumardwiv...@gmail.com> wrote:

> If you have full source code of Android stack with the kernel then you can
> check at AndroidBoard.mk file which will address the config file used for
> kernel compilation. If you want to compile only kernel then you can do
> something like:
> $ make -j4 KERNEL_DEFCONFIG=xyz_defconfig
> Here the xyz_defconfig is the file name which you might have found in
> AndroidBoard.mk.
> This is the usual way but I am not sure about the device you are using.
>
> ~Abhishek Dwivedi
>
> On Thu, Jul 18, 2019 at 10:01 PM 'Dan Willemsen' via Android Building <
> android-building@googlegroups.com> wrote:
>
>> As far as I know, when loading a module using the "insmod" command from
>>> the *ENG*(or userdebug) binary, it is not necessary to verify the
>>> signature of the module.
>>
>>
>> The kernel configuration / image doesn't change between eng/userdebug and
>> user, so this would surprise me. I suspect you'd have to rebuild the
>> kernel, but I don't know for sure. The android-kernel google group may be
>> able to help you more -- we generally only deal with prebuilt kernels when
>> building the rest of the platform.
>>
>> - Dan
>>
>> On Thu, Jul 18, 2019 at 7:37 AM Lucas. B  wrote:
>>
>>> *@Dear All,*
>>>
>>>
>>>
>>> I've been wondering about some of the android functions for some time
>>> now, so I made a device driver.
>>>
>>> And I downloaded the *AOSP *source code and built it into *ENG*(or
>>> userdebug), then flash it into my *Pixel 3 XL*.
>>>
>>> But as I tried to load the module with the "insmod" command, I could
>>> find the following:
>>>
>>>
>>>
 *insmod: failed to load /sdcard/.../my_driver.ko: Required key not
 available*

>>>
>>>
>>> As far as I know, when loading a module using the "insmod" command from
>>> the *ENG*(or userdebug) binary, it is not necessary to verify the
>>> signature of the module.
>>>
>>> Anyway, I have the above signature problem, and I wonder how to solve it.
>>>
>>> How build own drive into the kernel, whether modify the .config in the *AOSP
>>> *source to build a new binary, or whatever can try to build a device
>>> driver, etc. I welcome everyone.
>>>
>>> I want to make sure my driver is working normally on the my *Pixel 3 XL*
>>> .
>>>
>>>
>>>
>>> *with best regard,*
>>>
>>> *Thanks =)*
>>> *Lucas. B.*
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the "Android
>>> Building" mailing list.
>>> To post to this group, send email to android-building@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-building+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-building?hl=en
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Building" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to android-building+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/android-building/efbcb066-7ef7-4cb7-a5b6-55e39bfedfe2%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> --
>> You received this message because you are subscribed to the "Android
>> Building" mailing list.
>> To post to this group, send email to android-building@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-building+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-building?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Android Building" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to android-building+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/android-building/CALQgHd%3DrTs%2B0SEYs%3DXdqZ_r23P7mnD0s8YGUfBU67vsbN0Rqtg%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en

Re: [android-building] SDK building - development/build/sdk.atree - couldn't locate source file error

2019-07-19 Thread 'Dan Willemsen' via Android Building
Building the sdk generally requires using the 'sdk' product when calling
lunch -- it looks like that's why you were building a bunch of tools
independently.

I wouldn't be surprised if the sdk generation code didn't support
OUT_DIR(/OUT_DIR_COMMON_BASE) that was anything other than "out".

- Dan

On Fri, Jul 19, 2019 at 11:25 AM Nicolas Peslerbe <
nicolas.pesle...@bionomous.ch> wrote:

> Dear all,
>
> I have an error I can't figure out where it comes from but maybe one of
> you can help me.
>
> I try to build android sdk with the following script:
>
> cd ../rk3399-android-8.1
> . build/envsetup.sh
> export OUT_DIR_COMMON_BASE=~/androidSdk
> lunch nanopc_t4-userdebug
>
> make -j16 dmtracedump
> make -j16 etc1tool
> make -j16 split-select
> make -j16 bcc_compat
> make -j16 apksigner
> make -j16 dx
> make -j16 libaapt2_jni
> make -j16 layoutlib-legacy
>
> make -j16 sdk
>
>
> Everything goes well until it reaches the 100% stage (zip building), at
> this point I get the following error:
>
> development/build/sdk-android-arm64-v8a.atree:20: couldn't locate source 
> file: 
> /home/peslerbe/androidSdk/rk3399-android-8.1/host/linux-x86/development/sys-img-arm64-v8a/images_arm64-v8a_source.properties
> development/build/sdk.atree:143: couldn't locate source file: 
> /home/peslerbe/androidSdk/rk3399-android-8.1/host/common/obj/JAVA_LIBRARIES/shrinkedAndroid_intermediates/shrinkedAndroid.jar
> development/build/sdk.atree:161: couldn't locate source file: 
> /home/peslerbe/androidSdk/rk3399-android-8.1/host/linux-x86/development/sdk/platform_source.properties
> development/build/sdk.atree:167: couldn't locate source file: 
> /home/peslerbe/androidSdk/rk3399-android-8.1/target/common/obj/PACKAGING/android_jar_intermediates/android.jar
> development/build/sdk.atree:168: couldn't locate source file: 
> /home/peslerbe/androidSdk/rk3399-android-8.1/target/common/obj/PACKAGING/android_jar_intermediates/android-stubs-src.jar
> development/build/sdk.atree:171: couldn't locate source file: 
> /home/peslerbe/androidSdk/rk3399-android-8.1/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy_intermediates/javalib.jar
> development/build/sdk.atree:173: couldn't locate source file: 
> /home/peslerbe/androidSdk/rk3399-android-8.1/target/common/obj/JAVA_LIBRARIES/android_uiautomator_intermediates/javalib.jar
> development/build/sdk.atree:222: couldn't locate source file: 
> /home/peslerbe/androidSdk/rk3399-android-8.1/host/common/obj/PACKAGING/sdk-fonts_intermediates
> development/build/sdk.atree:238: couldn't locate source file: 
> /home/peslerbe/androidSdk/rk3399-android-8.1/target/product/nanopc-t4/system.img
> development/build/sdk.atree:239: couldn't locate source file: 
> /home/peslerbe/androidSdk/rk3399-android-8.1/target/product/nanopc-t4/vendor.img
> development/build/sdk.atree:252: couldn't locate source file: 
> /home/peslerbe/androidSdk/rk3399-android-8.1/host/linux-x86/development/sdk/doc_source.properties
>
>
> but when I check all paths, some file are present, with content and
> correct permissions/rights:
>
> -rw-rw-r-- 1 peslerbe peslerbe 10450 Jul 19 12:10 ###FILE_NAME###
>
>
> Does anyone has got an idea about the source of this error ?
>
> Thanks,
> Best regards,
>
> Nicolas
>
>
>
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-building+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-building/33628644-4aba-4adf-891a-7089b6bab113%40googlegroups.com
> 
> .
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CALQgHdnfJd2pxjLRu%3Dmf3GSKbR7viuU72t32u4YYG3mGNmWXuw%40mail.gmail.com.


[android-building] SDK building - development/build/sdk.atree - couldn't locate source file error

2019-07-19 Thread Nicolas Peslerbe
Dear all,

I have an error I can't figure out where it comes from but maybe one of you 
can help me.

I try to build android sdk with the following script:

cd ../rk3399-android-8.1
. build/envsetup.sh
export OUT_DIR_COMMON_BASE=~/androidSdk
lunch nanopc_t4-userdebug

make -j16 dmtracedump
make -j16 etc1tool
make -j16 split-select
make -j16 bcc_compat
make -j16 apksigner
make -j16 dx
make -j16 libaapt2_jni
make -j16 layoutlib-legacy

make -j16 sdk


Everything goes well until it reaches the 100% stage (zip building), at 
this point I get the following error:

development/build/sdk-android-arm64-v8a.atree:20: couldn't locate source file: 
/home/peslerbe/androidSdk/rk3399-android-8.1/host/linux-x86/development/sys-img-arm64-v8a/images_arm64-v8a_source.properties
development/build/sdk.atree:143: couldn't locate source file: 
/home/peslerbe/androidSdk/rk3399-android-8.1/host/common/obj/JAVA_LIBRARIES/shrinkedAndroid_intermediates/shrinkedAndroid.jar
development/build/sdk.atree:161: couldn't locate source file: 
/home/peslerbe/androidSdk/rk3399-android-8.1/host/linux-x86/development/sdk/platform_source.properties
development/build/sdk.atree:167: couldn't locate source file: 
/home/peslerbe/androidSdk/rk3399-android-8.1/target/common/obj/PACKAGING/android_jar_intermediates/android.jar
development/build/sdk.atree:168: couldn't locate source file: 
/home/peslerbe/androidSdk/rk3399-android-8.1/target/common/obj/PACKAGING/android_jar_intermediates/android-stubs-src.jar
development/build/sdk.atree:171: couldn't locate source file: 
/home/peslerbe/androidSdk/rk3399-android-8.1/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy_intermediates/javalib.jar
development/build/sdk.atree:173: couldn't locate source file: 
/home/peslerbe/androidSdk/rk3399-android-8.1/target/common/obj/JAVA_LIBRARIES/android_uiautomator_intermediates/javalib.jar
development/build/sdk.atree:222: couldn't locate source file: 
/home/peslerbe/androidSdk/rk3399-android-8.1/host/common/obj/PACKAGING/sdk-fonts_intermediates
development/build/sdk.atree:238: couldn't locate source file: 
/home/peslerbe/androidSdk/rk3399-android-8.1/target/product/nanopc-t4/system.img
development/build/sdk.atree:239: couldn't locate source file: 
/home/peslerbe/androidSdk/rk3399-android-8.1/target/product/nanopc-t4/vendor.img
development/build/sdk.atree:252: couldn't locate source file: 
/home/peslerbe/androidSdk/rk3399-android-8.1/host/linux-x86/development/sdk/doc_source.properties


but when I check all paths, some file are present, with content and correct 
permissions/rights:

-rw-rw-r-- 1 peslerbe peslerbe 10450 Jul 19 12:10 ###FILE_NAME###


Does anyone has got an idea about the source of this error ?

Thanks,
Best regards,

Nicolas




-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/33628644-4aba-4adf-891a-7089b6bab113%40googlegroups.com.


[android-building] Flashing kernel in pixel 2 (walleye)..?

2019-07-19 Thread Saurabh Sakhare
Hello, I'm newbie in kernel development. I want to know where can I get 
pixel 2 kernel and Clang toolchain and commands. I've been trying to 
compile it from last few days from random sources of git and google source. 
I could not compile a kernel I'm facing problem like some parse file is 
missing and arm32 toolchain. Pixel 2 is 64 bit wahoo. board is walleye. i'm 
trying every possible way somewhere I'm missing please help me out here.



Then I rooted my phone and got SYSTEM_LAST_BOOT_logs it attached with mail. 

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/2a095acf-f8af-4bfe-acfa-661d0d2d616f%40googlegroups.com.
isPrevious: false
Build: google/walleye/walleye:9/PQ2A.190305.002/5240760:user/release-keys
Hardware: walleye
Revision: MP1
Bootloader: mw8998-002.0075.02
Radio: g8998-00253-1811291732
Kernel: Linux version 4.4.155-g7c022c6 (android-build@abfarm900) (Android clang 
version 5.0.300080 (based on LLVM 5.0.300080)) #1 SMP PREEMPT Fri Jan 11 
21:31:16 UTC 2019



Re: [android-building] How to upload a driver that I created to my device?

2019-07-19 Thread abhishekkumardwiv...@gmail.com
If you have full source code of Android stack with the kernel then you can
check at AndroidBoard.mk file which will address the config file used for
kernel compilation. If you want to compile only kernel then you can do
something like:
$ make -j4 KERNEL_DEFCONFIG=xyz_defconfig
Here the xyz_defconfig is the file name which you might have found in
AndroidBoard.mk.
This is the usual way but I am not sure about the device you are using.

~Abhishek Dwivedi

On Thu, Jul 18, 2019 at 10:01 PM 'Dan Willemsen' via Android Building <
android-building@googlegroups.com> wrote:

> As far as I know, when loading a module using the "insmod" command from
>> the *ENG*(or userdebug) binary, it is not necessary to verify the
>> signature of the module.
>
>
> The kernel configuration / image doesn't change between eng/userdebug and
> user, so this would surprise me. I suspect you'd have to rebuild the
> kernel, but I don't know for sure. The android-kernel google group may be
> able to help you more -- we generally only deal with prebuilt kernels when
> building the rest of the platform.
>
> - Dan
>
> On Thu, Jul 18, 2019 at 7:37 AM Lucas. B  wrote:
>
>> *@Dear All,*
>>
>>
>>
>> I've been wondering about some of the android functions for some time
>> now, so I made a device driver.
>>
>> And I downloaded the *AOSP *source code and built it into *ENG*(or
>> userdebug), then flash it into my *Pixel 3 XL*.
>>
>> But as I tried to load the module with the "insmod" command, I could find
>> the following:
>>
>>
>>
>>> *insmod: failed to load /sdcard/.../my_driver.ko: Required key not
>>> available*
>>>
>>
>>
>> As far as I know, when loading a module using the "insmod" command from
>> the *ENG*(or userdebug) binary, it is not necessary to verify the
>> signature of the module.
>>
>> Anyway, I have the above signature problem, and I wonder how to solve it.
>>
>> How build own drive into the kernel, whether modify the .config in the *AOSP
>> *source to build a new binary, or whatever can try to build a device
>> driver, etc. I welcome everyone.
>>
>> I want to make sure my driver is working normally on the my *Pixel 3 XL*.
>>
>>
>>
>> *with best regard,*
>>
>> *Thanks =)*
>> *Lucas. B.*
>>
>> --
>> --
>> You received this message because you are subscribed to the "Android
>> Building" mailing list.
>> To post to this group, send email to android-building@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-building+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-building?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Android Building" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to android-building+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/android-building/efbcb066-7ef7-4cb7-a5b6-55e39bfedfe2%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-building+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-building/CALQgHd%3DrTs%2B0SEYs%3DXdqZ_r23P7mnD0s8YGUfBU67vsbN0Rqtg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CA%2BFjb8M%2BccfcPuoEjXo8VRk4PC%2BRFSMgV_5Ugu8MeZTgAZYpsQ%40mail.gmail.com.