FAQ Database Discussion Community


BIOS level programming

scripting,boot,bios,low-level
I am trying to write a script that is executed before Windows is booted on my Computer. I have already developed a simple Linux bash script to accomplish this, but I would like to improve and take it further. The problem with using a Linux script is that it adds...

Best way to start Zookeeper automatically on Ubuntu Server 14.04?

ubuntu,startup,zookeeper,boot
I have installed Zookeeper using sudo apt-get install zookeeper on an Ubuntu server 14.04. I am having trouble understanding how to configure Zookeeper to start automatically, on boot. Also, I can manually start it successfully only with root priviledges. I have looked at the documentation from the official page and...

u-boot select boot partition based on GPIO state

embedded,embedded-linux,boot,gpio,u-boot
I'm developing a recovery mechanism on a embedded system. I want to boot into recovery mode if user pressed a GPIO button. Recovery mode means selecting different kernel and root partition than usual. I got stuck on using gpio value in conditional command. If I write if gpio input 20;...

Passing kernel parametes to EFI-Stub in Apple's EFI env

linux,osx,kernel,boot,efi
Good day, everybody. I'm trying to shorten the boot process of an iMac dual-booting OS-X and Ubuntu as much as possible. So far i managed to boot grub (and Ubuntu afterwards) directly by Apple's EFI boot manager. I've accomplished this by masquerading (via hardlinks, alias, folder's tree, etc.) the grub...

Set a command to execute on boot + set daily reboot - Ubuntu [closed]

linux,ubuntu,command,server,boot
I have explored options to do both of these, however no definitive method has worked/possible for me to implement. What I want to do is this: First off I want my ubuntu server to restart once a day at a specific time. At boot, I want it to automatically execute...

How to Autowired in ConversionService in springboot

java,spring,spring-mvc,boot
Trying to access the ConversionControl in model in springboot, no luck. @Component public class CityHelperService { @Autowired ConversionService conversionService;// = ConversionServiceFactory.registerConverters(); public City toEntity(CityDTO dto){ City entity = conversionService.convert(dto, City.class); return entity; } public CityDTO toDTO(City entity){ CityDTO dto = conversionService.convert(entity, CityDTO.class); return dto; } } It shows the following...

INT 13h, get status of last op

assembly,boot,16-bit
I'm writing a bootloader for BIOS in 16-bit real mode, using qemu as my emulator. I have some code that fails to read from my HD. That's OK, but what actually bothers me is when I try to get the status code from that operation using the "Get Status of...

Piping echo into sendmail in rc.local fails

linux,shell,email,sendmail,boot
I'm trying to get my system to send me an email when the system boots. Using the following command works as intended: echo -e "TO:[email protected] \nSUBJECT:System Booted \n\nBeware I live! \n"$1 | sendmail -t -vs But if I add it to rc.local like so: #!/bin/sh -e # # rc.local #...

How to start service on device boot and on application start

android,service,boot
I need service, which will be started on device boot, also I need to start that service if user start application manually. This service have to be alive on background, even if user kill application with Task Killer, etc. Any answer is apprecitiated....

Raspberry pi kernel 3.2.27 no keyboard detected on boot

keyboard,kernel,raspberry-pi,cross-compiling,boot
I'm trying to cross-compile a driver for Raspberry Pi. The driver works in kernel 3.2 so I downloaded the 3.2.27 raspberry pi's kernel. I compiled the kernel as follows: make -j3 ARCH=arm CROSS_COMPILE=<dir>/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- make -j3 ARCH=arm CROSS_COMPILE=<dir>/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- modules make -j3 ARCH=arm...

Interrupt Descriptor Table in x86

assembly,x86,boot
I am trying to implement a boot-loader for x86. The initial version just uses the BIOS interrupt call to print "Hello" on the screen. I am using QEmu along with GDB for going through my code sequentially. Here is a snippet of the code: mov ah, 0x0e mov al, 'H'...

Linux - Get to Shell before other driver boot up

linux,shell,boot
How can I edit my startup scripts in linux so that I get to the login screen as soon as possible? I want all the other accessories (such as Bluetooth, Wifi, Ethernet) drivers to run ONCE I have gotten to the login screen and can now log into shell. The...

GNU GAS: Label is not relatively referenced

assembly,linker,nasm,boot,gas
I am writing a little bootsector for learning purpose. Here is boot.S .code16 .text movw $0xB800, %ax /* 0xB000 is the text screen video memory */ movw %ax, %es /* set it as the %es segment */ movb label, %al movb %al, %es:0x0 /* screen[0] = 'A' */ movb $0x07,...

How to boot my simple hello world program? [closed]

c++,c,assembly,boot
Suppose, I have a simple Hello world program which is built in C. Now How can I boot it during start my PC? My wish is to make simple hello world Operating System. I've quite knowledge regarding C and C++, how can I boot it? Please let me know. Do...

Mount USB Key on Boot

linux,usb,boot,mount
OpenSuSE 12.3 I'm trying to auto mount a USB key on boot. The mount point always needs to be the same, for each drive that is added. Can this be done without specifying the disks format type ? I may be mounting vfat, or NTFS, or ext4.. it will depend...

Busybox SUID on NFS rootfs

linux,embedded-linux,boot,nfs,rootfs
I am building a Linux system from the bottom for a Beagle Bone board. I have compiled the vanilla kernel and built a basic root file system with busybox. The system is booted with U-boot, while the rootfs is located on a Linux PC and exported through NFS: /path/to/rootfs 10.42.0.17(rw,wdelay,no_root_squash,no_subtree_check,sec=sys,rw,secure,no_root_squash,no_all_squash)...

How to run a Video Presentation on Android in loop?

android,video,boot,presentation
I have a group of Android Tablets and I need them to only run a Video Presentation as Company Gift Card. The idea of this project is the same of usually Company's Gift PENs, where the Company give to their presentation audience the information in the PEN, but this case...

How the modules are loaded at boot time? And what is the order in which they loaded at boot time? How to change it?

linux,boot,raspbian,udev,initrd
I am looking for how the modules are loaded at boot time. Who will load the modules when the system is booting up. I am using raspbain os. Before upgrading to device tree , my modules are loaded well, but after upgrading my modules are loading differently. To avoid that...

Difference between Spring and Spring Boot

spring,api,rest,boot
There are many people who advised me to use Spring Boot instead of Spring to develop REST web services. I want to know what exactly the difference between the two is?

Mounting GEOM_ELI Encrypted ZFS Pool as root

unix,encryption,freebsd,boot,zfs
I have a 3 Disk RAIDz1 Pool, encrypted with AES128 in GEOM_ELI, that I have been using in FreeNAS since version 8. There have been many zpool upgrades, and over all I am very happy with ZFS. Lately however I have been growing frustrated with FreeNAS. Largely many bugs that...