Hi Dan, On 01/26/2017 06:27 PM, Dan Zach wrote: > So I used: > jailhouse cell linux configs/jetson-tk1-linux-demo.cell zImage --dtb > configs/dts/inmate-jetson-tk1.dtb -c "console=ttyS0,1152000" Hmm, looks good.
No it doesn't! Look at your baudrate, you probably want 115200 and not 1152000. > > And it kicked with some sign of life: > > > linux loader e8002000 e8000000 //print i added into linux loader, > addresses look legit > ▒▒▒▒i(c▒ @▒tj▒▒*▒▒▒▒▒i▒▒q<(I X ----> 30 lines of garbage ouch. Yes, misconfigured baudrates tend to produce garbage :) > > - But if i see anything at all it means the non-root kernel got pretty > far, right? > - Only patch I applied to vanilla 4.8.2 is > http://git.kiszka.org/?p=linux.git;a=commit;h=2eadea418fdd1f8608c4ea7c63e707f4644eddf6 > should I have added more? You only need this patch, if you want Linux to use the putc hypercall to output characters, but maybe you want to try this some day as well: Use "console=jailhouse" as kernel cmdline and add check that your jailhouse cell configuration has .flags |= JAILHOUSE_CELL_DEBUG_CONSOLE. This gives your cell the permission to use the putc hypercall. Ah, and double check that your .config actully has CONFIG_JAILHOUSE_DBGCON=y. But I think fixing the baudrate should solve you problem. Ralf > > Thanks > Dan > > > > On 26 January 2017 at 12:33, Ralf Ramsauer > <[email protected] > <mailto:[email protected]>> wrote: > > On 01/26/2017 11:10 AM, Dan Zach wrote: > > On Thursday, 26 January 2017 11:04:37 UTC+2, Ralf Ramsauer wrote: > >> Hi Dan, > >> > >> On 01/26/2017 09:29 AM, Dan Zach wrote: > >>> I am in process of starting the non-root linux on the inmate. > >>> The inmate RAM starts at 0xe8000000 (phys and virt). > >>> The memory is carved out Ok from the root cell by using mem=1650M. > >>> > >>> I am using: > >>> $ LOAD_ADDR=0xe9000000 > >>> $ DTB_ADDR= 0xea000000 > >>> $ > >>> $ jailhouse cell create jetson-tk1-linux-demo.cell > >>> $ jailhouse cell load --name jetson-tk1-linux-inmate-demo \ > >>> linux-loader.bin -a 0x0 \ > >>> Image -a $LOAD_ADDR \ > >>> configs/dts/inmate-jetson-tk1.dtb -a > $DTB_ADDR \ > >>> -s "kernel=$LOAD_ADDR dtb=$DTB_ADDR" > -a 0x1000 > >> you have to load command line arguments to 0x100 for ARM > architecture. > >> 0x1000 is for ARMv8. > >> > >> Why don't you use jailhouse cell linux? > >> > >> Ralf > >>> > >>> The Image file is the one created by vanilla 4.8.2 build with > DGBCONSOLE patch > >>> First I saw that command line parsing returns 0 for both entry > and dtb, > >>> so I saw linux-loader jumps to itself in endless loop. > >>> > >>> I forced the entry to be at 0xe9000000 and dtb at 0xea000000, just > gets stuck. > >>> So what do I do wrong here? > >>> > >>> Thanks > >>> Dan > >>> > >> > >> > >> -- > >> Ralf Ramsauer > >> GPG: 0x8F10049B > > > > I followed the non-linux-arm64 doc, assuming the other one is for > x86... > Nope, x86 uses 0xf0000 :-) > > Just have a look at the linker files in inmates/lib/*/*.lds, .cmdline > section. > > > > So I should I go with this: > > > > jailhouse cell linux /path/to/linux.cell /path/to/bzImage \ > > -i /path/to/initrd -c "console=ttyS0,1152000" > > > > - And the script takes care of laying out the image inside the cell? > Yes, cell linux automatically searches for a proper free memory area and > patches the device tree binary. It prepares everything for you. > > Ah, don't forget to provide the device tree binary with --dtb. > > - Would it boot without initrd for starters? > Yes, and I would recommend to start without providing an initrd. We had > a recent discussion on that [1]. It might occur, that your unpacked > kernel overlaps with the initrd but still, you should see your kernel > booting. > Ralf > > [1] > > https://groups.google.com/forum/#!msg/jailhouse-dev/r2ON07be3TI/tETOqmIJBgAJ > > <https://groups.google.com/forum/#!msg/jailhouse-dev/r2ON07be3TI/tETOqmIJBgAJ> > > > > Thanks > > Dan > > > > > -- > You received this message because you are subscribed to the Google > Groups "Jailhouse" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout. -- Ralf Ramsauer GPG: 0x8F10049B -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
