Re: [linux-sunxi] Booting Android with uboot
On 15-01-14 13:15, jonsm...@gmail.com wrote: On Wed, Jan 15, 2014 at 12:44 AM, Henrik Nordström wrote: tis 2014-01-14 klockan 22:44 -0500 skrev jonsm...@gmail.com: I can boot Linux using this procedure without problem, but I can't get my Android kernel to boot. Android kernel just hangs... What is the difference between linux and an "Android kernel"? linux-sunxi.org kernel is an Android kernel. The CSI camera code in the Allwinner SDK kernel is far different than the code in sunxi kernel. I am unable to get the sunxi code working with a camera. sunxi code is losing buffers and after a few second stops because all of the buffers are lost. I started porting Allwinner CSI over but it relies on a lot of structure changes (gpio support) in the h files and that started rippling into a bunch of other code. The sunxi CSI code is old 3.0 code dropped CSI stuff; I don't think it received (m)any patches, so as usual, patches more then welcome! Oliver Does script.bin need to be somewhere else for the Android kernel to find it? I am using Android kernel from Allwinner SDK, not the sunxi one. So your question is do the Allwinner SDK kernel need script.bin in another place than the linux-sunxi.org kernel? No they expect script.bin in the same place. Regards Henrik -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [linux-sunxi] Booting Android with uboot
On Wed, Jan 15, 2014 at 2:24 AM, Ma Haijun wrote: > Hi, > > The problem is AW's kernel has a different machine id. That was the problem. I adjusted the Allwinner SDK to use the sunxi machine ID and it boots now. sun7i.h:#define CONFIG_MACH_TYPE 4283 > > >> -Original Message- >> From: linux-sunxi@googlegroups.com [mailto:linux-sunxi@googlegroups.com] >> On Behalf Of jonsm...@gmail.com >> Sent: Wednesday, January 15, 2014 11:44 AM >> To: linux-sunxi@googlegroups.com >> Subject: [linux-sunxi] Booting Android with uboot >> >> I put uboot on to a SD Card. >> uboot uses tftp to load kernel and script.bin kernel nfs mounts android > file >> system >> >> I can boot Linux using this procedure without problem, but I can't get my >> Android kernel to boot. Android kernel just hangs... >> >> Does script.bin need to be somewhere else for the Android kernel to find > it? I >> am using Android kernel from Allwinner SDK, not the sunxi one. >> >> un7i# tftp 0x4300 /var/lib/tftpboot/script.bin ENET Speed is 100 Mbps > - >> FULL duplex connection Using emac device TFTP from server 192.168.1.40; > our >> IP address is 192.168.1.85 Filename '/var/lib/tftpboot/script.bin'. >> Load address: 0x4300 >> Loading: >> 2.2 MiB/s >> done >> Bytes transferred = 46752 (b6a0 hex) >> sun7i# tftp 0x4800 /var/lib/tftpboot/uImage Using emac device TFTP > from >> server 192.168.1.40; our IP address is 192.168.1.85 Filename >> '/var/lib/tftpboot/uImage'. >> Load address: 0x4800 >> Loading: >> >> # >> >> # >> >> # >> >> # >> # >> 5.2 MiB/s >> done >> Bytes transferred = 3889368 (3b58d8 hex) sun7i# run setargs sun7i# bootm >> 0x4800 ## Booting kernel from Legacy Image at 4800 ... >>Image Name: Linux-3.3.0 >>Created: 2014-01-13 16:41:02 UTC >>Image Type: ARM Linux Kernel Image (uncompressed) >>Data Size:3889304 Bytes = 3.7 MiB >>Load Address: 40008000 >>Entry Point: 40008000 >>Verifying Checksum ... OK >>Loading Kernel Image ... OK >> >> Starting kernel ... >> >> >> -- >> Jon Smirl >> jonsm...@gmail.com >> >> -- >> You received this message because you are subscribed to the Google Groups >> "linux-sunxi" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to linux-sunxi+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. > > -- > You received this message because you are subscribed to the Google Groups > "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to linux-sunxi+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- Jon Smirl jonsm...@gmail.com -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [linux-sunxi] Booting Android with uboot
On Wed, Jan 15, 2014 at 12:44 AM, Henrik Nordström wrote: > tis 2014-01-14 klockan 22:44 -0500 skrev jonsm...@gmail.com: > >> I can boot Linux using this procedure without problem, but I can't get >> my Android kernel to boot. Android kernel just hangs... > > What is the difference between linux and an "Android kernel"? > > linux-sunxi.org kernel is an Android kernel. The CSI camera code in the Allwinner SDK kernel is far different than the code in sunxi kernel. I am unable to get the sunxi code working with a camera. sunxi code is losing buffers and after a few second stops because all of the buffers are lost. I started porting Allwinner CSI over but it relies on a lot of structure changes (gpio support) in the h files and that started rippling into a bunch of other code. > >> Does script.bin need to be somewhere else for the Android kernel to >> find it? I am using Android kernel from Allwinner SDK, not the sunxi >> one. > > So your question is do the Allwinner SDK kernel need script.bin in > another place than the linux-sunxi.org kernel? > > No they expect script.bin in the same place. > > Regards > Henrik > > -- > You received this message because you are subscribed to the Google Groups > "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to linux-sunxi+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- Jon Smirl jonsm...@gmail.com -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
RE: [linux-sunxi] Booting Android with uboot
Hi, The problem is AW's kernel has a different machine id. > -Original Message- > From: linux-sunxi@googlegroups.com [mailto:linux-sunxi@googlegroups.com] > On Behalf Of jonsm...@gmail.com > Sent: Wednesday, January 15, 2014 11:44 AM > To: linux-sunxi@googlegroups.com > Subject: [linux-sunxi] Booting Android with uboot > > I put uboot on to a SD Card. > uboot uses tftp to load kernel and script.bin kernel nfs mounts android file > system > > I can boot Linux using this procedure without problem, but I can't get my > Android kernel to boot. Android kernel just hangs... > > Does script.bin need to be somewhere else for the Android kernel to find it? I > am using Android kernel from Allwinner SDK, not the sunxi one. > > un7i# tftp 0x4300 /var/lib/tftpboot/script.bin ENET Speed is 100 Mbps - > FULL duplex connection Using emac device TFTP from server 192.168.1.40; our > IP address is 192.168.1.85 Filename '/var/lib/tftpboot/script.bin'. > Load address: 0x4300 > Loading: > 2.2 MiB/s > done > Bytes transferred = 46752 (b6a0 hex) > sun7i# tftp 0x4800 /var/lib/tftpboot/uImage Using emac device TFTP from > server 192.168.1.40; our IP address is 192.168.1.85 Filename > '/var/lib/tftpboot/uImage'. > Load address: 0x4800 > Loading: > > # > > # > > # > > # > # > 5.2 MiB/s > done > Bytes transferred = 3889368 (3b58d8 hex) sun7i# run setargs sun7i# bootm > 0x4800 ## Booting kernel from Legacy Image at 4800 ... >Image Name: Linux-3.3.0 >Created: 2014-01-13 16:41:02 UTC >Image Type: ARM Linux Kernel Image (uncompressed) >Data Size:3889304 Bytes = 3.7 MiB >Load Address: 40008000 >Entry Point: 40008000 >Verifying Checksum ... OK >Loading Kernel Image ... OK > > Starting kernel ... > > > -- > Jon Smirl > jonsm...@gmail.com > > -- > You received this message because you are subscribed to the Google Groups > "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to linux-sunxi+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [linux-sunxi] Booting Android with uboot
tis 2014-01-14 klockan 22:44 -0500 skrev jonsm...@gmail.com: > I can boot Linux using this procedure without problem, but I can't get > my Android kernel to boot. Android kernel just hangs... What is the difference between linux and an "Android kernel"? linux-sunxi.org kernel is an Android kernel. > Does script.bin need to be somewhere else for the Android kernel to > find it? I am using Android kernel from Allwinner SDK, not the sunxi > one. So your question is do the Allwinner SDK kernel need script.bin in another place than the linux-sunxi.org kernel? No they expect script.bin in the same place. Regards Henrik -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[linux-sunxi] Booting Android with uboot
I put uboot on to a SD Card. uboot uses tftp to load kernel and script.bin kernel nfs mounts android file system I can boot Linux using this procedure without problem, but I can't get my Android kernel to boot. Android kernel just hangs... Does script.bin need to be somewhere else for the Android kernel to find it? I am using Android kernel from Allwinner SDK, not the sunxi one. un7i# tftp 0x4300 /var/lib/tftpboot/script.bin ENET Speed is 100 Mbps - FULL duplex connection Using emac device TFTP from server 192.168.1.40; our IP address is 192.168.1.85 Filename '/var/lib/tftpboot/script.bin'. Load address: 0x4300 Loading: 2.2 MiB/s done Bytes transferred = 46752 (b6a0 hex) sun7i# tftp 0x4800 /var/lib/tftpboot/uImage Using emac device TFTP from server 192.168.1.40; our IP address is 192.168.1.85 Filename '/var/lib/tftpboot/uImage'. Load address: 0x4800 Loading: # # # # # 5.2 MiB/s done Bytes transferred = 3889368 (3b58d8 hex) sun7i# run setargs sun7i# bootm 0x4800 ## Booting kernel from Legacy Image at 4800 ... Image Name: Linux-3.3.0 Created: 2014-01-13 16:41:02 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size:3889304 Bytes = 3.7 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum ... OK Loading Kernel Image ... OK Starting kernel ... -- Jon Smirl jonsm...@gmail.com -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.