/srv/irclogs.ubuntu.com/2012/06/10/#ubuntu-arm.txt

ojns/Where/Who/01:51
XaSeAnyone 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?03:50
lilstevieXaSe, in most cases providing that bootloaders do not signature check the kernel it will be possible to boot ubuntu without needing to change the bootloader03:56
XaSeS-off or security off on an htc, so kernel signing is no issue.03:57
lilstevieok03:57
lilsteviewell you just need an appropriate kernel and initrd\03:58
lilstevieit isnt that difficult03:58
XaSeok. cool so i could write boot.img to /boot... would the initrd be stored there as well?04:01
XaSeim curious as how to handle the file system since the nand seems to have pre-defined positions?04:04
XaSeor am i off base?04:04
XaSepositions>partitions04:05
lilstevienand uses MTD04:06
lilstevieso you may want to boot your rootfs from sd04:07
lilstevieand the kernel is not all that is at boot04:07
lilsteviethe bootloader HBOOT is a fastboot bootloader04:08
XaSeAn android kernel source with some extra flags set should suffice for buildingb kernel or  should i use say: linaro sources or something else.04:08
lilsteviethis means it needs to be in android bootimg format04:09
XaSeSo i would require fastboot bits then?04:09
lilsteviewhich is packed zImage + initrd04:09
lilstevieas well as a header to define the commandline and a few other details like size04:09
XaSeSo recompiling cyanogenmod into a zImage should be fine?04:09
lilstevieuse the android kernel source with changes to the kernel config, there is no generic arm kernel tree that works on all devices like x86 does04:10
XaSeSo step one is modifying cyanogenmod sources to have necessary bits to work with ubuntu?04:11
lilstevieEdit the kernel config to allow udev to work (set CONFIG_DEVTMPFS=y and CONFIG_DEVTMPFS_MOUNT=y).04:13
lilsteviedont do the whole cm tree04:13
lilsteviethat is silly04:13
lilsteviejust the kernel04:13
lilsteviewhich device is this for04:13
=== W1N9Zr9389 is now known as W1N9Zr0
XaSeWell of  course the kernel, lilstevie its the htc evo4g05:36
lilsteviek05:36
XaSeman this computer is going to make it hard.05:37
XaSeso 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 ?05:40
lilsteviethere is no reason to remove the boot information, it just wont get used05:41
XaSeok05:42
XaSelet me see if i even know how to use git well enough to pull just the kernel05:43
XaSeI just realized this is the first time ive missed using an iteration of ubuntu on or before release in many ages05:46
XaSei'll just dl it  instead. im too dumb for git and so  is  this computer.05:48
XaSethe 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? lilstevie05:52
heathkidif we can't talk about the Raspberry Pi here... then where?06:40
heathkidI know at least a few of you have one now...  :)06:41
XaSei should copy a config to the kernel directory or the root source directory and rename it config right lilstevie ?13:26
XaSelilstevie: Create a kernel maintained /dev tmpfs ? to set those flags you mention?14:23
XaSehttp://pastebin.com/xu92Vc0M anyone know what's wrong because I dont14:34
XaSei have a .config file with correct config14:35
XaSeor do i have to name the file something else?14:35
XaSei think im missing target...14:37
XaSe and not  sure how to get it to build zimage either.14:38
janrinzeXaSe: the config file is .config ; did you configure the kernel with defconfig?15:28
XaSeit was my toolchain15:29
janrinzewhat was your toolchain??15:29
XaSeemdebian15:29
janrinzeyou mean it was caused by your toolchain?15:29
XaSeswitched to code sourcery, no issues.15:29
janrinzeaha.15:29
janrinzedid you manage to build a zImage?15:30
XaSeQuestion EXTRA_AFLAGS=-mfpu=neon < would this flag break anything?15:30
janrinzeyep, Tegra2 has no NEON15:30
XaSekernel is building now.15:30
XaSeim building for msm i believe15:30
janrinzemsm?15:31
XaSemach-msm15:31
XaSeit's a snap dragon chipset15:31
janrinzeoh, S4?15:31
XaSeI was getting these type of errors without neon flag15:32
XaSe/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'15:32
janrinzeah, i missed the 'htc' in the dir name :-)15:32
janrinzeXaSe: looks like your toolchain is not with hard-float15:33
janrinzeprobably -mhard-float would be better?15:33
janrinzeDo you intend to use armhf?15:34
XaSeif i run into errors maybe ? i dont know.15:34
XaSeits an armv7 chip.15:34
XaSei am not sure what all of it means to be honest15:34
janrinzethe float-abi can be either NEON or vfp3D1615:34
XaSewhich would you say would be best in your opinion?15:35
janrinzeit is about which co-processor is used for float instructions15:35
XaSeim aiming to use this as a tablet if that helps15:36
janrinzeXaSe: usually -mhard-float should be sufficient. I have not seen specific usage of NEON in the kernel yet.. but that may be just me ;-)15:36
janrinzeXaSe: you are compiling an Android kernel?15:36
XaSeno15:37
XaSelinux to use ubuntu15:37
XaSeboot from sd15:37
XaSeim using the android source15:37
janrinzeUbuntu will not be compiled with NEON, if you use armhf then it will use vfp3D1615:38
XaSeso i should change this flag15:39
janrinzedid you make your own Ubuntu image or got it from a download?15:39
XaSeHave not made it  was hoping a prebuilt fs would be sufficient15:40
janrinzemost prebuilt fs are armel, if you are lucky it will be armhf15:40
janrinzewith armel there is no hard-float compiled in with the binaries15:41
XaSeso extra_flags=-mhard-float instead?15:41
janrinzeor you could get the hard-float version of the compiler instead15:41
XaSeit just built my kernel...15:42
janrinzefine :-)15:42
janrinzeprobably will be ok, since the assembler instructions are quite specific :-)15:42
XaSeso now should i just rebuild with -mhard-float instead?15:43
janrinzeyou could, i don't think it will really matter15:43
XaSeBut didnt  you just say id need to build ubuntu image a certain way?15:44
janrinzeI have Ubuntu 12.04 armhf and for what it is worth, most things run a bit better15:44
janrinzeXaSe: your kernel will be able to run both15:44
janrinzehaving a armel fs would be ok too15:44
XaSeSo now that i've built my kernel wwhats my next step to be able to be up and running fastest15:45
XaSe?15:45
janrinzeprobably get a armhf Ubuntu image ;-)15:45
janrinzesince 12.04 it is possible to choose armel or armhf15:45
janrinzearmhf will be faster when programs use a lot of floating-point instructions15:46
janrinzea armel fs cannot be upgraded to armhf due to incompatibilities..15:46
janrinzeI am running Ubuntu 12.04 armhf on a ASUS TF101. works good.15:47
XaSeSo im unsure of what needs to be done next beyond flashing zimage through hboot.15:47
XaSelucky15:47
janrinzejust follow the instructions for your platform, must be on a web page somewhere since you already got this far ;-)15:48
XaSeIve kind of been winging it with previous knowledge and some info from lilstevie.15:49
janrinzeaha, then perhaps lilstevie can be of more help than me.15:49
XaSejanrinze: with that neon set do i still need to specify mhard-float to use armhf?16:01
XaSeor am i good to go with the flag i set16:02
XaSeI know someone named M. Poirier lol.16:07
janrinzeXaSe: your kernel will probably be fine for either armel or armhf16:09
XaSeok well then i will download the armhf core16:10
XaSeHow do I make the bootloader/kernel know that my root is on my sdcard.16:23
XaSeim only sure about one thing and that's fastboot flash zimage zImage16:38
xasejanrinze: where do i put initrd do you perhaps know?17:14
xase=/17:15
xasejanrinze: where do i put initrd do you perhaps know?17:15
xaseerr woops17:15
xasei would assume fastboot push initrd /boot ?17:15
xasei mean i would assume /boot17:15
xasestupid question, how to make an initrd17:26
xase_I dont think my kernel is even  doing anything.19:48
xase_not booting, nothing19:49
mythoshmm... it's sunday... so most are drunk or worse... be patient, xase_ ;)19:50
mythosxase_, what is your problem? maybe i can help you19:50
xase_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.19:51
mythoswhat device do you use?19:52
mythoshtc evo 4g/supersonic <-- is that the name?19:53
xase_yes19:54
mythoshmm... i don't have any experience to boot a phone. can you deactivate the splash? does the device use uboot?19:55
xase_no19:56
xase_fastboot/hboot19:56
mythosok... i have to say, that i can't help you then. sorry ;)19:56
xase_im giving up on the evo going back to hacking my nook.21:14
trelanewould 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?21:52
mythostrelane, maybe more luck in #pandaboard22:28
mythosäh...#beagle22:28

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!