Skip to content

Instantly share code, notes, and snippets.

View shadeslayer's full-sized avatar
👁️‍🗨️

Rohan Garg shadeslayer

👁️‍🗨️
View GitHub Profile
#!/bin/sh -e
if [ "$1" = "configure" ]; then
/usr/share/locales/install-language-pack "en" "" "$2" || true
fi
exit 0
#!/bin/sh
for x in $(cat /proc/cmdline); do
case ${x} in
m_bpp=*) export bpp=${x#*=} ;;
hdmimode=*) export mode=${x#*=} ;;
esac
done
HPD_STATE=/sys/class/amhdmitx/amhdmitx0/hpd_state
# Boot Arguments
setenv bootargs "root=UUID=<%= rootfs_blkid %> rootwait ro ${condev} no_console_suspend vdaccfg=0xa000 logo=osd1,loaded,0x7900000,720p,full dmfc=3 cvbsmode=576cvbs hdmimode=${m} m_bpp=${m_bpp} vout=${vout_mode} ${disableuhs} ${hdmi_hpd} ${hdmi_cec} ${enabledac}"
# Booting
fatload mmc 0:1 0x21000000 <%= uImage %>
fatload mmc 0:1 0x22000000 <%= uInitrd %>
fatload mmc 0:1 0x21800000 boot/meson8b_odroidc.dtb
fdt addr 21800000
ODROIDC-UBOOT-CONFIG
# Possible screen resolutions
# Uncomment only a single Line! The line with setenv written.
# At least one mode must be selected.
# setenv m "vga" # 640x480
# setenv m "480p" # 720x480
# setenv m "576p" # 720x576
# setenv m "800x480p60hz" # 800x480
:bootloader:
:config:
:src: boot.ini.erb
:dst: boot/boot.ini
:uboot:
:bl1:
:file: usr/share/c1_uboot/bl1.bin.hardkernel
:dd_opts: "bs=1 count=442"
:SPL:
:file: usr/share/c1_uboot/bl1.bin.hardkernel
```yml
---
:release: vivid
:size: 4G
:parted: parted.txt
:rootfs:
:url: https://releases.linaro.org/15.06/ubuntu/vivid-images/nano/linaro-vivid-nano-20150618-705.tar.gz
:md5sum: df15a61bb11e634b5c7e78379a67e8d9
:firmware:
:backend: apt
---
:release: vivid
:size: 4G
:parted: parted.txt
:rootfs:
:url: https://releases.linaro.org/15.06/ubuntu/vivid-images/nano/linaro-vivid-nano-20150618-705.tar.gz
:md5sum: df15a61bb11e634b5c7e78379a67e8d9
:firmware:
:backend: apt
:sources:
require_relative 'imageconfig'
require_relative 'lib/firmware/backend'
require 'open-uri'
require 'fileutils'
require 'digest'
# Class to handle firmware installation
class Firmware
def initialize(config)
@shadeslayer
shadeslayer / c1.yml
Created August 20, 2015 12:26
ODROID C1 HWPack
format: 3.0
name: c1-hwpack
architectures:
- armhf
origin: Blue Systems
maintainer: Rohan Garg <[email protected]>
support: unsupported
dtb_files:
- ./ : boot/meson8b_odroidc.dtb
dtb_addr: 0x21800000
diff --git a/src/modules/users/SetPasswordJob.cpp b/src/modules/users/SetPasswordJob.cpp
index 5631ded..5ec86ed 100644
--- a/src/modules/users/SetPasswordJob.cpp
+++ b/src/modules/users/SetPasswordJob.cpp
@@ -59,7 +59,7 @@ SetPasswordJob::exec()
return Calamares::JobResult::error( tr( "Bad destination system path." ),
tr( "rootMountPoint is %1" ).arg( destDir.absolutePath() ) );
- QByteArray data = crypt( m_newPassword.toLatin1(), QString( "$6$%1$" ).arg( m_userName ).toLatin1() );
+ QByteArray data = crypt( m_newPassword.toLatin1(), QString( "\$6\$%1\$" ).arg( m_userName ).toLatin1() );