]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Enclose uboot bootargs in apostrophes
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 12 Jan 2014 09:07:33 +0000 (10:07 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 12 Jan 2014 09:07:33 +0000 (10:07 +0100)
Needed if bootags contain special characters.

novaboot

index 69631992326a312a110528251ff5c8c1288942da..085b9b8672fbf32029b4ac820b34c79709978452 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -721,6 +721,7 @@ if (defined $target_reset) {
 if (defined $uboot) {
     print "novaboot: Waiting for uBoot prompt...\n";
     $exp->log_stdout(1);
+    #$exp->exp_internal(1);
     $exp->expect(20,
                 [qr/Hit any key to stop autoboot:/, sub { $exp->send("\n"); exp_continue; }],
                 '=> ') || die "No uBoot prompt deteceted";
@@ -754,7 +755,7 @@ if (defined $uboot) {
                     [qr/#/, sub { exp_continue; }],
                     '=> ') || die "Initrd load failed";
     }
-    $exp->send("set bootargs $kcmd\n");
+    $exp->send("set bootargs '$kcmd'\n");
     $exp->expect(1, '=> ')  || die "uBoot prompt timeout";
     $exp->send("bootm $kern_addr $initrd_addr $dtb_addr\n");
     $exp->expect(1, "\n")  || die "uBoot command timeout";