**** BEGIN LOGGING AT Mon Jul 08 02:59:59 2013 Jul 08 17:30:21 Hi! I finaly get kexec hard boot working on my TF300T. I have some qestion about kexecboot. First is, can kexecboot by configured to don't add anything to the cmdline (only use that from the boot.cfg)? I will to made dual boot Android & Arch, Android don't need the root= rootfstype etc. and Arch is instaled in chroot (i use switch_init to start it), so that option isn't usefull for me too Jul 08 17:32:45 dragonn: you may override root= by right value in boog.cfg APPEND option Jul 08 17:33:04 http://kexecboot.org/documentation/how_to_write_config Jul 08 17:33:53 Jay7, it would be more usefull when I don't will have any root= option in the cmdline Jul 08 17:34:13 right now it's not possible w/o patching sources Jul 08 17:35:11 Jay7, it which file schould I search for it? I know a litte C Jul 08 17:35:46 https://github.com/kexecboot/kexecboot/blob/master/kexecboot.c#L176 Jul 08 17:36:30 even https://github.com/kexecboot/kexecboot/blob/master/kexecboot.c#L227 Jul 08 17:39:37 Ok, I see thanks ;). Second what I wont ask - is possible to blacklist some devices? On my device there are one mmcblk that is used for flashing, it have ext3 filesystem, it cloud be dangerus to touch it. Will chmod 000 /dev/blacklist_device prefent kexecboot to open this device? Jul 08 17:50:48 dragonn: kexecboot is working as root, so chmod will not prevent it Jul 08 17:51:00 but you may add another patch :) Jul 08 17:52:31 https://github.com/kexecboot/kexecboot/blob/master/devicescan.c#L331 Jul 08 17:52:46 somewhere in this function Jul 08 17:53:32 device name is in tmp variable at line 348 Jul 08 17:53:40 Hmm I will see what can I do, hope I can made something. First I have made my own dual boot menu, but it is much more primitive Jul 08 17:54:00 So kexecboot will be much better solution ;) Jul 08 17:56:46 btw, why android don't use root= option? Jul 08 17:57:00 how does it find root partition? Jul 08 17:59:34 Jay7, it is hard codec in the init.rc files, Android uses his own init procces. And after boot on / you have still the ramdisk, the partition are mounted on /system /data /cache Jul 08 17:59:40 *coded Jul 08 18:00:23 ah Jul 08 18:01:07 well, then may be it's reasonable to make option to don't add root and rootfstype options by default Jul 08 18:05:37 Jay7, yes, just a configure option will be usefull Jul 08 18:32:50 Small question more. All the vaules from /proc/cmdline are loaded in the cfgparser? Means the complet cmdline is alivbe in params->cfg? Or only the mtdparts and fbcon? Because Android bootloader parsers meany think like serial number in the cmdline, so I need to parse it to the kexec kernel too Jul 08 18:42:46 can't you just copy & paste it to APPEND? Jul 08 18:44:34 No because every device have different serial no and etc. and I want to share me work with other TF300T owners Jul 08 18:44:45 *my Jul 08 18:45:01 dragonn: if you need to process some special keyword then you need to write your handler like set_mtdparts() e.g. Jul 08 18:45:09 https://github.com/kexecboot/kexecboot/blob/master/cfgparser.c#L327 Jul 08 18:45:30 and register it in cfg_keyfunc[] below Jul 08 18:45:42 like FBCON/MTDPARTS/CONSOLE Jul 08 18:46:04 Ok, thanks ;) Jul 08 18:46:08 and you need another field in cfgdata_t structure Jul 08 18:46:25 can you paste here your cmdline? Jul 08 18:46:38 may be with obfuscated serial Jul 08 18:47:34 console=tty0 no_console_suspend=0 tegra_wdt.heartbeat=30 console=tty0 no_console_suspend=0 tegra_wdt.heartbeat=30 tegraid=30.1.3.0.0 mem=1022M@2048M commchip_id=0 vmalloc=256M androidboot.serialno=015d2d4228340213 androidboot.commchip_id=0 video=tegrafb no_console_suspend=1 console=ttyS0,115200n8 debug_uartport=lsport,0 usbcore.old_scheme_first=1 lp0_vec=8192@0xbddf9000 tegra_fbmem=4098560@0xabc01000 core_edp_mv=0 audio_codec=wm8903 boar Jul 08 18:47:35 d_info=245:0:1c:a7:29 tegraboot=sdmmc gpt gpt_sector=62078975 modem_id=0 android.kerneltype=normal androidboot.productid=0x02 androidboot.carrier=wifi-only Jul 08 18:47:53 As you see they are many things :P Jul 08 18:48:09 so mean you androidboot.serialno? Jul 08 18:48:49 hm.. seems we need more general solution Jul 08 18:48:57 like cmdline tags whitelist Jul 08 18:49:51 tegra_wdt.heartbeat tegraid androidboot.serialno, the rest schould be the same for every device Jul 08 18:50:04 PASS_TAGS='console mem androidboot.serialno ...' or something like Jul 08 18:50:23 Hmm this could be a good idea Jul 08 18:51:28 or may be blacklist Jul 08 18:52:32 Hmm yes, I need only change the console and vmalloc sometimes Jul 08 18:53:06 Hmm I think I can made my own function for it Jul 08 18:55:17 Hmm modify the parse_cmdline and change it to a blacklist function, and made a new struct in cfg_keyfunc somekind off PARSE_CMDLINE Jul 08 18:57:01 it should be easy, yes Jul 08 18:57:33 just reuse parse_cmdline to fill some field by cmdline from host kernel Jul 08 18:58:04 by whitelisted tags or except blacklisted tags Jul 08 18:59:32 Yes, blacklisted will be better, only console no_console_suspend and vmalloc must be blacklisted **** ENDING LOGGING AT Tue Jul 09 03:00:00 2013