**** BEGIN LOGGING AT Sun Jun 10 03:00:02 2012 Jun 10 03:50:57 Anyone know if it is possible to replace bootloader on an android handset or to load ubuntu from the preexisting bootloader, or chain it to an acceptable boot mechanism such as grub or lilo? Jun 10 03:56:55 XaSe, in most cases providing that bootloaders do not signature check the kernel it will be possible to boot ubuntu without needing to change the bootloader Jun 10 03:57:37 S-off or security off on an htc, so kernel signing is no issue. Jun 10 03:57:45 ok Jun 10 03:58:18 well you just need an appropriate kernel and initrd\ Jun 10 03:58:42 it isnt that difficult Jun 10 04:01:01 ok. cool so i could write boot.img to /boot... would the initrd be stored there as well? Jun 10 04:04:15 im curious as how to handle the file system since the nand seems to have pre-defined positions? Jun 10 04:04:40 or am i off base? Jun 10 04:05:01 positions>partitions Jun 10 04:06:47 nand uses MTD Jun 10 04:07:27 so you may want to boot your rootfs from sd Jun 10 04:07:45 and the kernel is not all that is at boot Jun 10 04:08:25 the bootloader HBOOT is a fastboot bootloader Jun 10 04:08:39 An android kernel source with some extra flags set should suffice for buildingb kernel or should i use say: linaro sources or something else. Jun 10 04:09:03 this means it needs to be in android bootimg format Jun 10 04:09:07 So i would require fastboot bits then? Jun 10 04:09:13 which is packed zImage + initrd Jun 10 04:09:32 as well as a header to define the commandline and a few other details like size Jun 10 04:09:50 So recompiling cyanogenmod into a zImage should be fine? Jun 10 04:10:15 use the android kernel source with changes to the kernel config, there is no generic arm kernel tree that works on all devices like x86 does Jun 10 04:11:54 So step one is modifying cyanogenmod sources to have necessary bits to work with ubuntu? Jun 10 04:13:04 Edit the kernel config to allow udev to work (set CONFIG_DEVTMPFS=y and CONFIG_DEVTMPFS_MOUNT=y). Jun 10 04:13:12 dont do the whole cm tree Jun 10 04:13:14 that is silly Jun 10 04:13:17 just the kernel Jun 10 04:13:29 which device is this for Jun 10 05:36:05 Well of course the kernel, lilstevie its the htc evo4g Jun 10 05:36:48 k Jun 10 05:37:51 man this computer is going to make it hard. Jun 10 05:40:01 so you think dding the arm image to the sd card and then removing the boot information there and instead having it reside in /boot on the nand would be the best bet@ lilstevie ? Jun 10 05:41:27 there is no reason to remove the boot information, it just wont get used Jun 10 05:42:46 ok Jun 10 05:43:31 let me see if i even know how to use git well enough to pull just the kernel Jun 10 05:46:19 I just realized this is the first time ive missed using an iteration of ubuntu on or before release in many ages Jun 10 05:48:07 i'll just dl it instead. im too dumb for git and so is this computer. Jun 10 05:52:54 the latest source i can find so far was last modified two years ago and is 2.6.32 is that still acceptable for precise pangolin? lilstevie Jun 10 06:40:39 if we can't talk about the Raspberry Pi here... then where? Jun 10 06:41:01 I know at least a few of you have one now... :) Jun 10 13:26:56 i should copy a config to the kernel directory or the root source directory and rename it config right lilstevie ? Jun 10 14:23:31 lilstevie: Create a kernel maintained /dev tmpfs ? to set those flags you mention? Jun 10 14:34:42 http://pastebin.com/xu92Vc0M anyone know what's wrong because I dont Jun 10 14:35:01 i have a .config file with correct config Jun 10 14:35:49 or do i have to name the file something else? Jun 10 14:37:35 i think im missing target... Jun 10 14:38:19 and not sure how to get it to build zimage either. Jun 10 15:28:46 XaSe: the config file is .config ; did you configure the kernel with defconfig? Jun 10 15:29:02 it was my toolchain Jun 10 15:29:17 what was your toolchain?? Jun 10 15:29:25 emdebian Jun 10 15:29:40 switched to code sourcery, no issues. Jun 10 15:29:40 you mean it was caused by your toolchain? Jun 10 15:29:43 aha. Jun 10 15:30:16 did you manage to build a zImage? Jun 10 15:30:16 Question EXTRA_AFLAGS=-mfpu=neon < would this flag break anything? Jun 10 15:30:31 yep, Tegra2 has no NEON Jun 10 15:30:32 kernel is building now. Jun 10 15:30:50 im building for msm i believe Jun 10 15:31:00 msm? Jun 10 15:31:12 mach-msm Jun 10 15:31:24 it's a snap dragon chipset Jun 10 15:31:30 oh, S4? Jun 10 15:32:22 I was getting these type of errors without neon flag Jun 10 15:32:23 /home/all/SourceCode/android/HTC/vision-2.6.32-g814e0a1/arch/arm/mach-msm/idle-v7.S:126: Error: selected processor does not support ARM mode `fmxr fpexc,r2' Jun 10 15:32:25 ah, i missed the 'htc' in the dir name :-) Jun 10 15:33:10 XaSe: looks like your toolchain is not with hard-float Jun 10 15:33:31 probably -mhard-float would be better? Jun 10 15:34:09 Do you intend to use armhf? Jun 10 15:34:24 if i run into errors maybe ? i dont know. Jun 10 15:34:34 its an armv7 chip. Jun 10 15:34:57 i am not sure what all of it means to be honest Jun 10 15:34:58 the float-abi can be either NEON or vfp3D16 Jun 10 15:35:34 which would you say would be best in your opinion? Jun 10 15:35:36 it is about which co-processor is used for float instructions Jun 10 15:36:13 im aiming to use this as a tablet if that helps Jun 10 15:36:15 XaSe: usually -mhard-float should be sufficient. I have not seen specific usage of NEON in the kernel yet.. but that may be just me ;-) Jun 10 15:36:47 XaSe: you are compiling an Android kernel? Jun 10 15:37:16 no Jun 10 15:37:27 linux to use ubuntu Jun 10 15:37:35 boot from sd Jun 10 15:37:48 im using the android source Jun 10 15:38:43 Ubuntu will not be compiled with NEON, if you use armhf then it will use vfp3D16 Jun 10 15:39:28 so i should change this flag Jun 10 15:39:31 did you make your own Ubuntu image or got it from a download? Jun 10 15:40:11 Have not made it was hoping a prebuilt fs would be sufficient Jun 10 15:40:48 most prebuilt fs are armel, if you are lucky it will be armhf Jun 10 15:41:09 with armel there is no hard-float compiled in with the binaries Jun 10 15:41:28 so extra_flags=-mhard-float instead? Jun 10 15:41:53 or you could get the hard-float version of the compiler instead Jun 10 15:42:07 it just built my kernel... Jun 10 15:42:16 fine :-) Jun 10 15:42:51 probably will be ok, since the assembler instructions are quite specific :-) Jun 10 15:43:13 so now should i just rebuild with -mhard-float instead? Jun 10 15:43:34 you could, i don't think it will really matter Jun 10 15:44:12 But didnt you just say id need to build ubuntu image a certain way? Jun 10 15:44:14 I have Ubuntu 12.04 armhf and for what it is worth, most things run a bit better Jun 10 15:44:30 XaSe: your kernel will be able to run both Jun 10 15:44:51 having a armel fs would be ok too Jun 10 15:45:15 So now that i've built my kernel wwhats my next step to be able to be up and running fastest Jun 10 15:45:17 ? Jun 10 15:45:35 probably get a armhf Ubuntu image ;-) Jun 10 15:45:59 since 12.04 it is possible to choose armel or armhf Jun 10 15:46:21 armhf will be faster when programs use a lot of floating-point instructions Jun 10 15:46:49 a armel fs cannot be upgraded to armhf due to incompatibilities.. Jun 10 15:47:33 I am running Ubuntu 12.04 armhf on a ASUS TF101. works good. Jun 10 15:47:51 So im unsure of what needs to be done next beyond flashing zimage through hboot. Jun 10 15:47:54 lucky Jun 10 15:48:39 just follow the instructions for your platform, must be on a web page somewhere since you already got this far ;-) Jun 10 15:49:28 Ive kind of been winging it with previous knowledge and some info from lilstevie. Jun 10 15:49:50 aha, then perhaps lilstevie can be of more help than me. Jun 10 16:01:00 janrinze: with that neon set do i still need to specify mhard-float to use armhf? Jun 10 16:02:47 or am i good to go with the flag i set Jun 10 16:07:45 I know someone named M. Poirier lol. Jun 10 16:09:35 XaSe: your kernel will probably be fine for either armel or armhf Jun 10 16:10:10 ok well then i will download the armhf core Jun 10 16:23:29 How do I make the bootloader/kernel know that my root is on my sdcard. Jun 10 16:38:14 im only sure about one thing and that's fastboot flash zimage zImage Jun 10 17:14:32 janrinze: where do i put initrd do you perhaps know? Jun 10 17:15:04 =/ Jun 10 17:15:07 janrinze: where do i put initrd do you perhaps know? Jun 10 17:15:12 err woops Jun 10 17:15:33 i would assume fastboot push initrd /boot ? Jun 10 17:15:56 i mean i would assume /boot Jun 10 17:26:35 stupid question, how to make an initrd Jun 10 19:48:41 I dont think my kernel is even doing anything. Jun 10 19:49:16 not booting, nothing Jun 10 19:50:04 hmm... it's sunday... so most are drunk or worse... be patient, xase_ ;) Jun 10 19:50:28 xase_, what is your problem? maybe i can help you Jun 10 19:51:54 i have made kernel and initrd for htc evo 4g/supersonic and attempting to use fastboot to boot it but i dont go past splash screen. Jun 10 19:52:30 what device do you use? Jun 10 19:53:30 htc evo 4g/supersonic <-- is that the name? Jun 10 19:54:48 yes Jun 10 19:55:35 hmm... i don't have any experience to boot a phone. can you deactivate the splash? does the device use uboot? Jun 10 19:56:05 no Jun 10 19:56:11 fastboot/hboot Jun 10 19:56:35 ok... i have to say, that i can't help you then. sorry ;) Jun 10 21:14:09 im giving up on the evo going back to hacking my nook. Jun 10 21:52:32 would anyone like to recommend a wireless adapter which is stable on the beaglebone with the -psp kernel series that rcn-ee appears to be responsible for? Jun 10 22:28:39 trelane, maybe more luck in #pandaboard Jun 10 22:28:51 äh...#beagle **** ENDING LOGGING AT Mon Jun 11 02:59:58 2012