BUILD CUSTOM SDK - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Quartz64 (https://forum.pine64.org/forumdisplay.php?fid=166) +--- Forum: Linux on Quartz64 (https://forum.pine64.org/forumdisplay.php?fid=168) +--- Thread: BUILD CUSTOM SDK (/showthread.php?tid=16092) |
RE: BUILD CUSTOM SDK - shaggy013 - 03-08-2022 (03-07-2022, 04:59 PM)dieselnutjob Wrote: Have I understood correctly that with your 4.19 the MIPI-DSI LCD panel will work, but with your 5.10 it won't ? it is just a rk 4.19 nothing realy special maybey a few versions higher as on your original tablet firmware you know it all comes to the dts i disabled dsi-mipi in my dts because i dont use it . for now you could be a little more lucky with a downstream kernel like this kernel for your tablet to get display output . just look what changed in the dts files of your dtb with recent dts files also dts files change a litte with build verions 4.19.219 has little changes from example .193 thought mipi0 got video0 but you will find out the 5.10 you just forget do you have a dtb or dts of your tablet i can throw it in a android 12 build RE: BUILD CUSTOM SDK - shaggy013 - 03-09-2022 added fix from x893 for dieselnutjob added camera and dsi back updated buildroot and mpp .repo/repo/repo init -u https://github.com/Shaggy013/manifests -b master -m rk356x_linux_custom_v1.2.8_20220309.xml if you updating it remove buidroot , external/mpp and kernel folder and do that the same in project-objects and projects folders in .repo and sync with the new xml for new build just follow guide it is updated RE: BUILD CUSTOM SDK - x893 - 03-10-2022 Thanks @Shaggy13 need little fix after .repo/repo/repo sync --no-clone-bundle but before ./build.sh quartz64-rk3566-buildroot-k4.mk need mkdir rockdev RE: BUILD CUSTOM SDK - shaggy013 - 03-10-2022 (03-07-2022, 12:34 PM)x893 Wrote: Hi, Do you have a soquartz ? , cool would be nice if you can test that it is a rk356x check for sure to check the dts file a pinenote would be little trickier with the waveform img of diffrent panels .!! for the x88 you have to extract the dtb of the device or firmware and convert it to a dts it is little time consuming but possible proberly it is based on the rk3566_box_v10 dts shematics would be handy but with opening the box and take good pictures of the pcb will get a good impression of the hardware used wifi is same ap6255 cant see the pmic if there is one ? for example the pmic a rk817 or a rk809 and a uart console to see what uboot and kernel does you could try to use the dtb of your device with a image with a 4.19 kernel like the one from mara https://dl.slarm64.org/slackware/images/quartz64/ or without a dtb and mainline https://github.com/warpme/minimyth2/blob/master/script/kernel/linux-5.17/files/0836-arm64-dts-rockchip-add-dts-for-x96-x6.patch here look how someone did it with a pinenote https://github.com/DorianRudolph/pinenotes or to convert it to a dts https://github.com/Ralim/hacking-pinenote-android/tree/master/deviceTree RE: BUILD CUSTOM SDK - dieselnutjob - 03-10-2022 The quartz64-a has DSI port and it works with Android. The pine64 Android image appears to use rk3566-rk817-tablet.dtb and in the boot logs is listed as "Machine model: Rockchip RK3566 RK817 TABLET LP4X Board" I guess that the Quartz64-a must be quite close to that Rockchip eval tablet board. The kernel in the Android image is 4.19.172 RE: BUILD CUSTOM SDK - shaggy013 - 03-10-2022 (03-10-2022, 09:41 AM)dieselnutjob Wrote: The quartz64-a has DSI port and it works with Android. it is just how you configure it dsi , edp ,lvds ,hdmi the dtb is just changed a little to work on a quartz64 in the ebook andoid kernel folder you can find that patch rk has .154 ebook has .172 most common is the .193 and some .206 i added dsi in the quartz64.dts you would only have to enable it for edp or lvds would need other configuration RE: BUILD CUSTOM SDK - x893 - 03-10-2022 Hello, i try enable spi1 in rk3568.dtsi (Quartz64 board) change only status = "okay"; and receive next error [root@RK356X:/]# dmesg|grep spi [ 1.067593] rockchip-pinctrl pinctrl: pin gpio2-14 already requested by fe650000.serial; cannot claim for fe620000.spi [ 1.067639] rockchip-pinctrl pinctrl: pin-78 (fe620000.spi) status -22 [ 1.067659] rockchip-pinctrl pinctrl: could not request pin 78 (gpio2-14) from group spi1m0-pins on device rockchip-pinctrl [ 1.067675] rockchip-spi fe620000.spi: Error applying setting, reverse things back [ 1.067721] rockchip-spi: probe of fe620000.spi failed with error -22 Can anybody help me to resolve ? Thanks in advance RE: BUILD CUSTOM SDK - shaggy013 - 03-11-2022 (03-10-2022, 04:01 PM)x893 Wrote: Hello,yeah why would you enable spi in 3568.dtsi ??? did you check the quartz dts file for sfc !? RE: BUILD CUSTOM SDK - shaggy013 - 03-11-2022 (03-10-2022, 03:44 AM)x893 Wrote: Thanks @Shaggy13 ? why rockdev is just a output dir wich get generated RE: BUILD CUSTOM SDK - Randomuser - 07-15-2022 Thank you for this. It makes things much more straightforward. Is there a chance you could write a similar guide how to build a custom Android image? Also, if we are cloning the entire sdk with repo tool does this mean the 35GB Linux BSP/SDK file is essentially useless/outdated? Also, it failed on my Ubuntu 20.04 with: Code: Running build_uboot succeeded. Edit: I can answer my own question for anyone having the same issue. It seems the file: Code: device/rockchip/rk356x/pine64-rk3566-ubuntu.mk Code: export RK_KERNEL_DEFCONFIG=Quartz64_defconfig Code: export RK_KERNEL_DEFCONFIG=Quartz64_linux_defconfig Then it proceeds with kernel build. |