Comment 3 for bug 1579767

Revision history for this message
Pedro Coca (pcoca) wrote :

The CRC error was related to one of the flags of mkenvimage (-r)

./mkenvimage -s 2600 -o uboot.env $CWD/uboot.txt

But running mkenvimage with -r and re-running the whole process of the kernel snap build with modified metadata now gives another error:

Unmounting...
panic: runtime error: index out of range

goroutine 1 [running, locked to thread]:
panic(0x94f960, 0xc82000e0c0)
    /usr/lib/go-1.6/src/runtime/panic.go:464 +0x3e6
github.com/mvo5/uboot-go/uenv.parseData(0xc82051e005, 0x752b, 0x7dfb, 0x9217b12c)
    /home/egon/devel/go/src/github.com/mvo5/uboot-go/uenv/env.go:95 +0x2ea
github.com/mvo5/uboot-go/uenv.Open(0xc82015dbc0, 0x33, 0x0, 0x0, 0x0)
    /home/egon/devel/go/src/github.com/mvo5/uboot-go/uenv/env.go:80 +0x440
github.com/ubuntu-core/snappy/partition.(*uboot).SetBootVar(0xecf4b8, 0xa0b560, 0xd, 0xc8203adac3, 0x13, 0x0, 0x0)
    /home/egon/devel/go/src/github.com/ubuntu-core/snappy/partition/uboot.go:53 +0x6a
main.(*Snapper).install(0xeb2828, 0xc820186080, 0x1e, 0x0, 0x0)
    /home/egon/devel/go/src/launchpad.net/goget-ubuntu-touch-all-snaps/ubuntu-device-flash/snappy.go:265 +0x1532
main.(*Snapper).setup(0xeb2828, 0xc82019f7c8, 0x0, 0x0, 0x0, 0x0)
    /home/egon/devel/go/src/launchpad.net/goget-ubuntu-touch-all-snaps/ubuntu-device-flash/snappy.go:630 +0x26f3
main.(*Snapper).deploy(0xeb2828, 0xc82019f7c8, 0x0, 0x0, 0x0, 0x0)
    /home/egon/devel/go/src/launchpad.net/goget-ubuntu-touch-all-snaps/ubuntu-device-flash/snappy.go:658 +0x290
main.(*Snapper).create(0xeb2828, 0x0, 0x0)
    /home/egon/devel/go/src/launchpad.net/goget-ubuntu-touch-all-snaps/ubuntu-device-flash/snappy.go:815 +0xb8e
main.(*CoreCmd).Execute(0xeb2800, 0xc82013e000, 0x1, 0xf, 0x0, 0x0)
    /home/egon/devel/go/src/launchpad.net/goget-ubuntu-touch-all-snaps/ubuntu-device-flash/core.go:83 +0x3b1
github.com/jessevdk/go-flags.(*Parser).ParseArgs(0xc8200fe820, 0xc82000a0f0, 0xf, 0xf, 0x0, 0x0, 0x0, 0x0, 0x0)
    /home/egon/devel/go/src/github.com/jessevdk/go-flags/parser.go:301 +0xa10
main.execute(0xc82000a0f0, 0xf, 0xf)
    /home/egon/devel/go/src/launchpad.net/goget-ubuntu-touch-all-snaps/ubuntu-device-flash/main.go:64 +0x3c9
main.main()
    /home/egon/devel/go/src/launchpad.net/goget-ubuntu-touch-all-snaps/ubuntu-device-flash/main.go:46 +0x3b