{"id":971,"date":"2016-06-27T07:58:45","date_gmt":"2016-06-27T14:58:45","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=971"},"modified":"2016-06-27T08:00:31","modified_gmt":"2016-06-27T15:00:31","slug":"linux-for-sparc-boot-issue","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/linux-for-sparc-boot-issue\/","title":{"rendered":"Linux for SPARC Boot Issue"},"content":{"rendered":"

I am running an Oracle Linux for SPARC ldom and had a couple boot issues recently. This may help getting past boot issues.<\/p>\n

First issue was because I had a cdrom attached to the ldom and that path was not valid. Like unmounted NFS path for example. That caused a kernel dump and per the development list they will take this as a bug and fix in a future update. The workaround of course was simple once I figured out what was choking. Just remove invalid disk attachment.<\/p>\n

The second issue was much more tricky and not until I spotted some selinux message on kernel panics did I realize some recent change I made with selinux profiles must have caused a missing config. The fix is to disable selinux but that was not as easy as I thought. Here is what I did and it may help someone else trying to pass kernel bootup parameters.
\n1. disable auto-boot<\/p>\n

\r\n# ldm set-var auto-boot\\?=false linuxsparc_ldom\r\n<\/pre>\n

2. Get into the boot prompt. This was the tricky part because the linux kernel started booting as soon as I type boot or boot disk. Plus either I did not have enough time before Silo boots the kernel or it is having an issue with normal Esc or Shift keystrokes to pause bootup. I am not sure but it kept booting whatever keystrokes I tried. What I ended up doing is using \"-s\". I did \"boot -s\" which in normal SPARC world means it will boot the kernel in single user mode. I did not really expect openboot to pass single user to linux kernel boot but at least it stops then at boot prompt.<\/p>\n

\r\n{0} ok boot disk -s\r\nBoot device: \/virtual-devices@100\/channel-devices@200\/disk@0  File and args: -s\r\nSILO Version 1.4.14 - Rel: 4.0.18.el6\r\n\\\r\nWelcome to Linux for SPARC!\r\nHit <TAB> for boot options\r\nYour imagename `-s' and arguments `' have either wrong syntax,\r\nor describe a label which is not present in silo.conf\r\nType `help' at the boot: prompt if you need it and then try again.\r\nboot: \r\n4.1.12-32.el6uek.sparc64  linux-uek                \r\n<\/pre>\n

3. Now boot the linux kernel with selinux=0<\/p>\n

\r\nboot: 4.1.12-32.el6uek.sparc64 selinux=0\r\nAllocated 64 Megs of memory at 0x40000000 for kernel\r\nLoaded kernel version 4.1.12\r\nLoading initial ramdisk (25972306 bytes at 0\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

I am running an Oracle Linux for SPARC ldom and had a couple boot issues recently. This may help getting<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54,9,67],"tags":[],"class_list":["post-971","post","type-post","status-publish","format-standard","hentry","category-ldom","category-linux","category-sparc"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=971"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/971\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}